Skip to content

io_uring/io-wq: support unbounded work

Jens Axboe io-uring linux-block 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 0 repliesNew

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3io-wq: io_wqe_run_queue() doesn't need to use list_empty_careful()fs/io-wq.c+1 -20 replies
2/3io_wq: add support for bounded vs unbunded workfs/io-wq.c fs/io-wq.h fs/io_uring.c+170 -840 replies
3/3io_uring: properly mark async work as bounded vs unboundedfs/io_uring.c+14 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCHSET v2 0/3] io_uring/io-wq: support unbounded work

This is v2 of this patchset, but this one takes a different approach. I wasn't that crazy about adding a separate io-wq so each io_ring needs to have two, so this one instead adds specific support to io-wq for bounded and unbounded work. io_wq_create() now takes both limits, and any user of this must set work->flags |= IO_WQ_WORK_UNBOUND to queue unbounded work. By default, work is assumed to be bounded.

Patch 1 is just a cleanup I found while doing this, patch 2 adds the necessary io-wq support, and patch 3 is now much simpler and basically just adds the switch table from before without having to do anything else.

 fs/io-wq.c    | 242 ++++++++++++++++++++++++++++++++++----------------
 fs/io-wq.h    |   4 +-
 fs/io_uring.c |  22 ++++-
 3 files changed, 184 insertions(+), 84 deletions(-)
Signature · 1 line
Jens Axboe