Skip to content

Add support for registered waits

Jens Axboe io-uring 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 0 repliesNew
  2. v23 patches 0 repliesSuperseded
  3. v1 RFC3 patches 2 repliesSuperseded

Changes in v3 from the cover letter

- Wrap registration with a setup struct, to better future proof the feature. That would allow doing a registered wait variant with the sigmask embedded as well, should that be interesting in the future.
- Update liburing reg-wait branch with the new registration API
- Fixup copy for 32 vs 64-bit
- Minor cleanups and comments

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3io_uring: switch struct ext_arg from __kernel_timespec to timespec64io_uring/io_uring.c+9 -100 replies
2/3io_uring: change io_get_ext_arg() to use uaccess begin + endio_uring/io_uring.c+17 -10 replies
3/3io_uring: add support for fixed wait regionsinclude/linux/io_uring_types.h include/uapi/linux/io_uring.h io_uring/io_uring.c +2 more+191 -110 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchKeith Busch
1/3
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCHSET v3 0/3] Add support for registered waits

Hi,

v3 of the registered wait support, avoiding needless copies for doing high frequency waits. For v1, see the posting here:

https://lore.kernel.org/io-uring/[email protected]/T/#m2d1eb2cc648b9f9c292fd75fc6bc2a8d71eadd49

As with v1, find the kernel repo here:

https://git.kernel.dk/cgit/linux/log/?h=io_uring-reg-wait

and the liburing side here:

https://git.kernel.dk/cgit/liburing/log/?h=reg-wait

 include/linux/io_uring_types.h |  10 ++++
 include/uapi/linux/io_uring.h  |  41 +++++++++++++
 io_uring/io_uring.c            | 105 ++++++++++++++++++++++++++-------
 io_uring/register.c            |  82 +++++++++++++++++++++++++
 io_uring/register.h            |   1 +
 5 files changed, 217 insertions(+), 22 deletions(-)

Since v2:
- Wrap registration with a setup struct, to better future proof the feature. That would allow doing a registered wait variant with the sigmask embedded as well, should that be interesting in the future.
- Update liburing reg-wait branch with the new registration API
- Fixup copy for 32 vs 64-bit
- Minor cleanups and comments

Signature · 1 line
Jens Axboe