]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: refactor io_ring_exit_work()
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 14 Apr 2021 12:38:34 +0000 (13:38 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 14 Apr 2021 16:42:31 +0000 (10:42 -0600)
commit9c6981b4a0bf51658f192c5bb08e513a2e984cc4
treea8348128a0b1b5fd9e9a4293c291264f06223522
parent14d4e000917f12ed56bc48c42c7c2987a6f3d04c
io_uring: refactor io_ring_exit_work()

Don't reinit io_ring_exit_work()'s exit work/completions on each
iteration, that's wasteful. Also add list_rotate_left(), so if we failed
to complete the task job, we don't try it again and again but defer it
until others are processed.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c