diff options
| author | Jens Axboe <[email protected]> | 2021-02-23 19:27:49 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2021-02-24 03:33:36 +0000 |
| commit | 8a378fb096a7f02943c72a428bbfd0029260efb6 (patch) | |
| tree | 0a734ed2b33e2e08295b5a0793bb20d72a32ad0f /scripts/gcc-plugins/structleak_plugin.c | |
| parent | arch: ensure parisc/powerpc handle PF_IO_WORKER in copy_thread() (diff) | |
| download | kernel-8a378fb096a7f02943c72a428bbfd0029260efb6.tar.gz kernel-8a378fb096a7f02943c72a428bbfd0029260efb6.zip | |
io_uring: ensure io-wq context is always destroyed for tasks
If the task ends up doing no IO, the context list is empty and we don't
call into __io_uring_files_cancel() when the task exits. This can cause
a leak of the io-wq structures.
Ensure we always call __io_uring_files_cancel(), even if the task
context list is empty.
Fixes: 5aa75ed5b93f ("io_uring: tie async worker side to the task context")
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/structleak_plugin.c')
0 files changed, 0 insertions, 0 deletions
