diff options
| author | Pavel Begunkov <[email protected]> | 2020-12-30 21:34:16 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2020-12-31 02:36:54 +0000 |
| commit | b1b6b5a30dce872f500dc43f067cba8e7f86fc7d (patch) | |
| tree | 0deae7b9298a78c4f63a4fdd9924eb3ee4f5876d /scripts/gcc-plugins/structleak_plugin.c | |
| parent | io_uring: fix io_sqe_files_unregister() hangs (diff) | |
| download | kernel-b1b6b5a30dce872f500dc43f067cba8e7f86fc7d.tar.gz kernel-b1b6b5a30dce872f500dc43f067cba8e7f86fc7d.zip | |
kernel/io_uring: cancel io_uring before task works
For cancelling io_uring requests it needs either to be able to run
currently enqueued task_works or having it shut down by that moment.
Otherwise io_uring_cancel_files() may be waiting for requests that won't
ever complete.
Go with the first way and do cancellations before setting PF_EXITING and
so before putting the task_work infrastructure into a transition state
where task_work_run() would better not be called.
Cc: [email protected] # 5.5+
Signed-off-by: Pavel Begunkov <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/structleak_plugin.c')
0 files changed, 0 insertions, 0 deletions
