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>
Mon, 1 Mar 2021 17:10:30 +0000 (10:10 -0700)
commite3cf14bfbe95186738b16e74bc6e29a42be6031b
tree653f582c72863cc3b8f237e7e608896fac4c22d5
parent8629b37dfa458d265e4636b7adb266642459d322
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