diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2022-11-11 16:54:09 +0000 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-11-21 07:44:21 -0700 |
commit | d75936062049522172a107c994242b76c89777f9 (patch) | |
tree | c1005454a0ac3d0b9674012bd913cc66c447f1bc /io_uring/io_uring.h | |
parent | e52d2e583e4ad1d5d0b804d79c2b8752eb0e5ceb (diff) | |
download | lwn-d75936062049522172a107c994242b76c89777f9.tar.gz lwn-d75936062049522172a107c994242b76c89777f9.zip |
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>
Diffstat (limited to 'io_uring/io_uring.h')
0 files changed, 0 insertions, 0 deletions