io_uring: cancel pending async work if task exits
authorJens Axboe <axboe@kernel.dk>
Sun, 9 Feb 2020 03:23:59 +0000 (20:23 -0700)
committerJens Axboe <axboe@kernel.dk>
Sun, 9 Feb 2020 16:55:38 +0000 (09:55 -0700)
commit6ab231448fdc5e37c15a94a4700fca11e80007f7
tree941919bce2c64e765fc2f4a27aa6310599e993a4
parent36282881a795cbf717aca79392ae9cdf0fef59c9
io_uring: cancel pending async work if task exits

Normally we cancel all work we track, but for untracked work we could
leave the async worker behind until that work completes. This is totally
fine, but does leave resources pending after the task is gone until that
work completes.

Cancel work that this task queued up when it goes away.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c