]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: run fallback on cancellation
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 26 Feb 2021 15:47:56 +0000 (15:47 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 4 Mar 2021 13:34:03 +0000 (06:34 -0700)
commit6915bc718daed35ae8cc35368d6812819129ed45
treee4d1f04645e03aefa8500270f262979da5bdd9d1
parent39a942a128851e6a91d7248fe5f7dc49d3f9806e
io_uring: run fallback on cancellation

io_uring_try_cancel_requests() matches not only current's requests, but
also of other exiting tasks, so we need to actively cancel them and not
just wait, especially since the function can be called on flush during
do_exit() -> exit_files().
Even if it's not a problem for now, it's much nicer to know that the
function tries to cancel everything it can.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c