mbox series

[liburing,0/8] update reg-wait to use region API

Message ID cover.1731705935.git.asml.silence@gmail.com (mailing list archive)
Headers show
Series update reg-wait to use region API | expand

Message

Pavel Begunkov Nov. 15, 2024, 9:33 p.m. UTC
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(-)

Comments

Jens Axboe Nov. 16, 2024, 5:07 p.m. UTC | #1
On Fri, 15 Nov 2024 21:33:47 +0000, Pavel Begunkov wrote:
> 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.
> 
> [...]

Applied, thanks!

[1/8] queue: break reg wait setup
      commit: b38747291d5034ef8392d1b76ebe748c9ba32847
[2/8] Update io_uring.h
      commit: 4843183eeadaf6ac53ccf6121950d4a254636cae
[3/8] queue: add region helpers and fix up wait reg kernel api
      commit: e37a3bdebb8814888eeec67c7721b8f365d08ec7
[4/8] examples: convert reg-wait to new api
      commit: 12c18dabafeb89dd95250b19f3d044c116f57938
[5/8] tests: convert reg-wait to regions
      commit: 00b42a502f23747f353d3a3f47baf34259d1d1b0
[6/8] tests: add region testing
      commit: be7bc8538b748f5f43b1c8f43a84970034ca98c9
[7/8] tests: test arbitrary offset reg waits
      commit: 65d67c0f0f046da401bcd605029545e1f15070a0
[8/8] Remove leftovers of old reg-wait registration api
      commit: 425cfec1027af251b3128dd0f8be51f2095b8c0b

Best regards,