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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Aug 2020 09:42:08 +0000 (11:42 +0200)
commit92147c5dca1886b9ec8568b22f3f583540acd4a5
treea88b3c9380386163f5a6151935a6b77fa79046d5
parentfedb45ab9dc517775a3591f0599ab966eb0fdf46
io_uring: cancel all task's requests on exit

[ Upstream commit 44e728b8aae0bb6d4229129083974f9dea43f50b ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/io-wq.c
fs/io-wq.h
fs/io_uring.c