]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: add fast path for io_run_local_work()
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 8 Sep 2022 15:56:56 +0000 (16:56 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 21 Sep 2022 19:15:01 +0000 (13:15 -0600)
commit2f1786eff56526bede8c63c2a5526167f4796735
treef37adcaa5dcdfedaddbcce94c92c824bc64354e7
parent42f0ee1597cfdab9a2af29f91ca080204c3f3a2c
io_uring: add fast path for io_run_local_work()

We'll grab uring_lock and call __io_run_local_work() with several
atomics inside even if there are no task works. Skip it if ->work_llist
is empty.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Dylan Yudaken <dylany@fb.com>
Link: https://lore.kernel.org/r/f6a885f372bad2d77d9cd87341b0a86a4000c0ff.1662652536.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c