Skip to content

cancel_hash per entry lock

Hao Xu io-uring 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 7 repliesIn review
  2. v12 patches 12 repliesSuperseded

Changes in v2 from the cover letter

- Add per entry lock for poll/apoll task work code which was missed in v1
- add an member in io_kiocb to track req's indice in cancel_hash

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3io_uring: add hash_index and its logic to track req in cancel_hashio_uring/io_uring_types.h io_uring/poll.c+4 -12 replies
2/3io_uring: add an io_hash_bucket structure for smaller granularity lockio_uring/cancel.h+5 -01 reply
3/3io_uring: switch cancel_hash to use per list spinlockio_uring/cancel.c io_uring/cancel.h io_uring/fdinfo.c +3 more+59 -380 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/3] cancel_hash per entry lock

From: Hao Xu <[email protected]>

Make per entry lock for cancel_hash array, this reduces usage of completion_lock and contension between cancel_hash entries.

v1->v2:
- Add per entry lock for poll/apoll task work code which was missed in v1
- add an member in io_kiocb to track req's indice in cancel_hash

Hao Xu (3):
io_uring: add hash_index and its logic to track req in cancel_hash
io_uring: add an io_hash_bucket structure for smaller granularity lock
io_uring: switch cancel_hash to use per list spinlock

 io_uring/cancel.c         | 15 +++++++--
 io_uring/cancel.h         |  6 ++++
 io_uring/fdinfo.c         |  9 ++++--
 io_uring/io_uring.c       |  8 +++--
 io_uring/io_uring_types.h |  3 +-
 io_uring/poll.c           | 64 +++++++++++++++++++++------------------
 6 files changed, 67 insertions(+), 38 deletions(-)

base-commit: d8271bf021438f468dab3cd84fe5279b5bbcead8

Signature · 1 line
2.25.1