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)
commit7f00651aebc9af600be1d9df2a775eeeaee6bebb
treea8348128a0b1b5fd9e9a4293c291264f06223522
parentf39c8a5b1130fe17db9c66d08aa473d9587543a9
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