diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2022-06-25 11:52:58 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-07-24 18:39:16 -0600 |
commit | 37c7bd31b3e9e4b6aee3c5227f789c0b586a33a2 (patch) | |
tree | dce2f51288972fb8fa8dd77e3832b80c377124e4 /include | |
parent | fe991a7688f894a74a6f6b4933bf6cd5fa086c1b (diff) |
io_uring: improve io_fail_links()
io_fail_links() is called with ->completion_lock held and for that
reason we'd want to keep it as small as we can. Instead of doing
__io_req_complete_post() for each linked request under the lock, fail
them in a task_work handler under ->uring_lock.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/a2f68708b970a21f4e84ddfa7b3abd67a8fffb27.1656153285.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions