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:21:07 +0000 (10:21 -0700)
commitc994ea22789b4f1408e3d7b5341d3fcc622d54f0
treec728fb7967535cfbb991dc5257b42e0f383018fb
parent469855d180def56ef997faab202a19ca84f939de
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