Skip to content
Commit 8a378fb0 authored by Jens Axboe's avatar Jens Axboe
Browse files

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: 5aa75ed5

 ("io_uring: tie async worker side to the task context")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 0100e6bb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment