io_uring: hold locks for io_req_complete_failed
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 23 Nov 2022 11:33:37 +0000 (11:33 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 23 Nov 2022 17:44:00 +0000 (10:44 -0700)
commite276ae344a770f91912a81c6a338d92efd319be2
tree362f0c0671ea88f02b9a863f1983744e6c836fe9
parent2ccc92f4effcfa1c51c4fcf1e34d769099d3cad4
io_uring: hold locks for io_req_complete_failed

A preparation patch, make sure we always hold uring_lock around
io_req_complete_failed(). The only place deviating from the rule
is io_cancel_defer_files(), queue a tw instead.

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