Skip to content

tw mutex & IRQ rw completion batching

Pavel Begunkov io-uring 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3io_uring: flush completions for fallbacksfs/io_uring.c+5 -06 replies
2/3io_uring: batch task work lockingfs/io_uring.c+52 -370 replies
3/3io_uring: IRQ rw completion batchingfs/io_uring.c+16 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] tw mutex & IRQ rw completion batching

In essence, it's about two features. The first one is implemented by 1-2 and saves ->uring_lock lock/unlock in a single call of tctx_task_work(). Should be useful for links, apolls and BPF requests at some moment.

The second feature (3/3) is batching freeing and completing of IRQ-based read/write requests.

Haven't got numbers yet, but just throwing it for public discussion.

P.S. for the new horrendous part of io_req_task_complete() placing state->compl_reqs and flushing is temporary, will be killed by other planned patches.

Pavel Begunkov (3):
io_uring: flush completions for fallbacks
io_uring: batch task work locking
io_uring: IRQ rw completion batching

 fs/io_uring.c | 103 +++++++++++++++++++++++++++++++++-----------------
 1 file changed, 69 insertions(+), 34 deletions(-)
Signature · 1 line
2.32.0