Skip to content

update reg-wait to use region API

Pavel Begunkov io-uring 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/8queue: break reg wait setupsrc/register.c src/setup.c+1 -270 replies
2/8Update io_uring.hsrc/include/liburing/io_uring.h+26 -10 replies
3/8queue: add region helpers and fix up wait reg kernel apisrc/include/liburing.h src/liburing-ffi.map src/liburing.map +2 more+14 -20 replies
4/8examples: convert reg-wait to new apiexamples/reg-wait.c+39 -60 replies
5/8tests: convert reg-wait to regionstest/reg-wait.c+83 -1340 replies
6/8tests: add region testingtest/reg-wait.c+137 -00 replies
7/8tests: test arbitrary offset reg waitstest/reg-wait.c+43 -00 replies
8/8Remove leftovers of old reg-wait registration apisrc/include/liburing.h src/liburing-ffi.map src/liburing.map +1 more+0 -170 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH liburing 0/8] update reg-wait to use region API

Reflect changes of the kernel API for registered waits and fix up tests. The only thing that changed for the user is how we register the area, which is now more generic and called areas. It should also be done now while the ring is in the disabled state, see IORING_SETUP_R_DISABLED.

In the future we might want to improve the liburing API for regions, i.e. adding a structure and a bunch of functions setting up the region in different modes.

Pavel Begunkov (8):
queue: break reg wait setup
Update io_uring.h
queue: add region helpers and fix up wait reg kernel api
examples: convert reg-wait to new api
tests: convert reg-wait to regions
tests: add region testing
tests: test arbitrary offset reg waits
Remove leftovers of old reg-wait registration api

 examples/reg-wait.c             |  45 +++-
 src/include/liburing.h          |   7 +-
 src/include/liburing/io_uring.h |  27 ++-
 src/liburing-ffi.map            |   3 +-
 src/liburing.map                |   3 +-
 src/queue.c                     |   4 +-
 src/register.c                  |  13 +-
 src/setup.c                     |  29 ---
 test/reg-wait.c                 | 377 +++++++++++++++++++++-----------
 9 files changed, 332 insertions(+), 176 deletions(-)
Signature · 1 line
2.46.0