io_uring SQPOLL improvements
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest8 patches 7 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | io_uring: io_sq_thread() doesn't need to flush signalsfs/ | +0 | 0 replies | |
| 2/8 | io_uring: allow SQPOLL with CAP_SYS_NICE privilegesfs/ | +1 | 0 replies | |
| 3/8 | io_uring: use private ctx wait queue entries for SQPOLLfs/ | +19 | 0 replies | |
| 4/8 | io_uring: move SQPOLL post-wakeup ring need wakeup flag into wake handlerfs/ | +13 | 0 replies | |
| 5/8 | io_uring: split work handling part of SQPOLL into helperfs/ | +96 | 0 replies | |
| 6/8 | io_uring: split SQPOLL data into separate structurefs/ | +73 | 0 replies | |
| 7/8 | io_uring: base SQPOLL handling off io_sq_datafs/ | +72 | 0 replies | |
| 8/8 | io_uring: enable IORING_SETUP_ATTACH_WQ to attach to SQPOLL thread toofs/ | +43 | 7 replies |
Reviews trailers per patch
1 of 8 patches has a Reviewed-by or Acked-by.
| Patch | Jiufei Xue | Joseph Qi |
|---|---|---|
| 1/8 | ||
| 2/8 | ||
| 3/8 | ||
| 4/8 | ||
| 5/8 | ||
| 6/8 | ||
| 7/8 | ||
| 8/8 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCHSET for-next 0/8] io_uring SQPOLL improvements
The SQPOLL support is useful as it stands, but for various use cases it's less useful than it could be. In no particular order:
- We currently require root. I'd like to "relax" that to CAP_SYS_NICE instead, which I think fits quite nicely with it.
- You get one poll thread per ring. For cases that use multiple rings, this isn't necessary and is also quite wasteful.
Patch 1 is a cleanup, patch 2 allows CAP_SYS_NICE for SQPOLL, and the remaining patches gradually work our way to be able to support shared SQPOLL threads. The latter works exactly like IORING_SETUP_ATTACH_WQ, where we currently support just sharing the io-wq backend between threads. With this added, we also support the SQPOLL thread.
I'm sure there are some quirks and issues to iron out in the SQPOLL series, but some initial testing shows it working for me and it passes the test suite. I'll run some more testing, reviews would be more than welcome.
fs/io_uring.c | 385 +++++++++++++++++++++++++++++++++++--------------- 1 file changed, 268 insertions(+), 117 deletions(-)
Signature · 1 line
Jens Axboe