io_uring: split tw fallback into a function
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 11 Nov 2022 16:54:09 +0000 (16:54 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 21 Nov 2022 14:44:21 +0000 (07:44 -0700)
commitd75936062049522172a107c994242b76c89777f9
treec1005454a0ac3d0b9674012bd913cc66c447f1bc
parente52d2e583e4ad1d5d0b804d79c2b8752eb0e5ceb
io_uring: split tw fallback into a function

When the target process is dying and so task_work_add() is not allowed
we push all task_work item to the fallback workqueue. Move the part
responsible for moving tw items out of __io_req_task_work_add() into
a separate function. Makes it a bit cleaner and gives the compiler a bit
of extra info.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/e503dab9d7af95470ca6b214c6de17715ae4e748.1668162751.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c