io_uring: cancel all task's requests on exit
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 15 Jun 2020 07:24:04 +0000 (10:24 +0300)
committerJens Axboe <axboe@kernel.dk>
Mon, 15 Jun 2020 14:51:34 +0000 (08:51 -0600)
commit44e728b8aae0bb6d4229129083974f9dea43f50b
tree0b34f50ac8706d4c8d9ee801bf680ea06a27e10c
parent4f26bda1522c35d2701fc219368c7101c17005c1
io_uring: cancel all task's requests on exit

If a process is going away, io_uring_flush() will cancel only 1
request with a matching pid. Cancel all of them

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