diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2023-04-06 14:20:08 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-04-06 16:23:10 -0600 |
commit | d73a572df24661851465c821d33c03e70e4b68e5 (patch) | |
tree | c6a218a8fefe4b8505a87989ed5f497ec57310f3 /io_uring/io_uring.h | |
parent | ab1c590f5c9b96d8d8843d351aed72469f8f2ef0 (diff) |
io_uring: optimize local tw add ctx pinning
We currently pin the ctx for io_req_local_work_add() with
percpu_ref_get/put, which implies two rcu_read_lock/unlock pairs and some
extra overhead on top in the fast path. Replace it with a pure rcu read
and let io_ring_exit_work() synchronise against it.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/cbdfcb6b232627f30e9e50ef91f13c4f05910247.1680782017.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/io_uring.h')
0 files changed, 0 insertions, 0 deletions