io_uring/io-wq: support unbounded work
Get series with b4
b4 am [email protected]Versions newest first
- v2 Latest3 patches 0 repliesNew
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | io-wq: io_wqe_run_queue() doesn't need to use list_empty_careful()fs/ | +1 | 0 replies | |
| 2/3 | io_wq: add support for bounded vs unbunded workfs/ fs/ fs/ | +170 | 0 replies | |
| 3/3 | io_uring: properly mark async work as bounded vs unboundedfs/ | +14 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
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