public inbox for [email protected]
 help / color / mirror / Atom feed
* [PATCH v2 0/3] cancel_hash per entry lock
@ 2022-06-06  6:57 Hao Xu
  2022-06-06  6:57 ` [PATCH 1/3] io_uring: add hash_index and its logic to track req in cancel_hash Hao Xu
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Hao Xu @ 2022-06-06  6:57 UTC (permalink / raw)
  To: io-uring; +Cc: Jens Axboe, Pavel Begunkov

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
-- 
2.25.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-06-06 13:48 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-06  6:57 [PATCH v2 0/3] cancel_hash per entry lock Hao Xu
2022-06-06  6:57 ` [PATCH 1/3] io_uring: add hash_index and its logic to track req in cancel_hash Hao Xu
2022-06-06 11:59   ` Pavel Begunkov
2022-06-06 13:47     ` Hao Xu
2022-06-06  6:57 ` [PATCH 2/3] io_uring: add an io_hash_bucket structure for smaller granularity lock Hao Xu
2022-06-06 11:55   ` Pavel Begunkov
2022-06-06  6:57 ` [PATCH 3/3] io_uring: switch cancel_hash to use per list spinlock Hao Xu
2022-06-06  7:06 ` [PATCH v2 0/3] cancel_hash per entry lock Hao Xu
2022-06-06 12:02   ` Pavel Begunkov
2022-06-06 12:09     ` Pavel Begunkov
2022-06-06 13:39     ` Hao Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox