io_uring: if we see flush on exit, cancel related tasks
authorJens Axboe <axboe@kernel.dk>
Sat, 23 Jan 2021 22:51:11 +0000 (15:51 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jan 2021 01:13:56 +0000 (18:13 -0700)
commit84965ff8a84f0368b154c9b367b62e59c1193f30
tree4bad45289f957d8a7fd2feb281adad8cde6c0538
parent6ee1d745b7c9fd573fba142a2efdad76a9f1cb04
io_uring: if we see flush on exit, cancel related tasks

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>
fs/io_uring.c