io_uring: if we see flush on exit, cancel related tasks
authorJens Axboe <axboe@kernel.dk>
Tue, 9 Feb 2021 04:47:42 +0000 (04:47 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Feb 2021 12:54:57 +0000 (13:54 +0100)
commitf0ff1a95bfa873e9b5e5883cc07d37fc4ae6bbca
tree2745cc33e22ae4c3d484dfaecf372fc054b4b13a
parentd16692a34e8e60c76e0064ee7805bd5db1b0ef3b
io_uring: if we see flush on exit, cancel related tasks

[ Upstream commit 84965ff8a84f0368b154c9b367b62e59c1193f30 ]

Ensure we match tasks that belong to a dead or dying task as well, as we
need to reap those in addition to those belonging to the exiting task.

Cc: stable@vger.kernel.org # 5.9+
Reported-by: Josef Grieb <josef.grieb@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/io_uring.c