Skip to content

regions, param pre-mapping and reg waits extension

Pavel Begunkov io-uring 3 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 2 repliesApplied
  2. v26 patches 0 repliesSuperseded
  3. v16 patches 2 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/6io_uring: fortify io_pin_pages with a warningio_uring/memmap.c+2 -00 replies
2/6io_uring: disable ENTER_EXT_ARG_REG for IOPOLLio_uring/io_uring.c+2 -60 replies
3/6io_uring: temporarily disable registered waitsinclude/linux/io_uring_types.h include/uapi/linux/io_uring.h io_uring/io_uring.c +2 more+0 -1060 replies
4/6io_uring: introduce concept of memory regionsinclude/linux/io_uring_types.h include/uapi/linux/io_uring.h io_uring/memmap.c +1 more+101 -00 replies
5/6io_uring: add memory region registrationinclude/linux/io_uring_types.h include/uapi/linux/io_uring.h io_uring/io_uring.c +1 more+49 -00 replies
6/6io_uring: restore back registered wait argumentsinclude/linux/io_uring_types.h include/uapi/linux/io_uring.h io_uring/io_uring.c +1 more+36 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/6] regions, param pre-mapping and reg waits extension

A bit late but first we need a better and more generic API for ring/memory/region registration (see Patch 4), and it changes the API extending registered waits to be a generic parameter passing mechanism. That will be useful in the future to implement a more flexible rings creation, especially when we want to share same huge page / mapping. Patch 6 uses it for registered wait arguments, and it can also be used to optimise parameter passing for normal io_uring requests.

A dirty liburing branch with tests:

https://github.com/isilence/liburing/tree/io-uring-region-test

v3: fix page array memleak (Patch 4)

v2: cleaned up namings and commit messages
moved all EXT_ARG_REG related bits Patch 5 -> 6 added alignment checks (Patch 6)

Pavel Begunkov (6):
io_uring: fortify io_pin_pages with a warning
io_uring: disable ENTER_EXT_ARG_REG for IOPOLL
io_uring: temporarily disable registered waits
io_uring: introduce concept of memory regions
io_uring: add memory region registration
io_uring: restore back registered wait arguments

 include/linux/io_uring_types.h | 20 +++----
 include/uapi/linux/io_uring.h  | 28 +++++++++-
 io_uring/io_uring.c            | 27 +++++-----
 io_uring/memmap.c              | 69 ++++++++++++++++++++++++
 io_uring/memmap.h              | 14 +++++
 io_uring/register.c            | 97 ++++++++++++----------------------
 io_uring/register.h            |  1 -
 7 files changed, 166 insertions(+), 90 deletions(-)
Signature · 1 line
2.46.0