]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0416c9926cea98b06fd3d90f478a1acb7778d170
tree941919bce2c64e765fc2f4a27aa6310599e993a4
parent7ee55c3e7d836b012da7e29cba71fb9864a96345
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