Skip to content

io-wq/io_uring locking optimisation

Pavel Begunkov io-uring lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4io-wq: shuffle io_worker_handle_work() codefs/io-wq.c+64 -590 replies
2/4io-wq: optimise locking in io_worker_handle_work()fs/io-wq.c+7 -80 replies
3/4io-wq: optimise out *next_work() double lockfs/io-wq.c+6 -30 replies
4/4io_uring/io-wq: forward submission ref to asyncfs/io-wq.c fs/io-wq.h fs/io_uring.c+27 -390 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/4] io-wq/io_uring locking optimisation

[1-3] are shedding excessive locking of @wqe's and @worker's spinlocks from io_worker_handle_work().

[4] removes an extra pair of refcount get/put by making former io_put_work() to own the submission reference. It also changes io-wq get/put API and renames io_put_work() into io_free_work() to reflect it.

Pavel Begunkov (4):
io-wq: shuffle io_worker_handle_work() code
io-wq: optimise locking in io_worker_handle_work()
io-wq: optimise out *next_work() double lock io_uring/io-wq: forward submission ref to async

 fs/io-wq.c    | 148 ++++++++++++++++++++++++++------------------------
 fs/io-wq.h    |   6 +-
 fs/io_uring.c |  31 ++++-------
 3 files changed, 90 insertions(+), 95 deletions(-)
Signature · 1 line
2.24.0