Skip to content
Commit 87ceb6a6 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: drop 'ctx' ref on task work cancelation



If task_work ends up being marked for cancelation, we go through a
cancelation helper instead of the queue path. In converting task_work to
always hold a ctx reference, this path was missed. Make sure that
io_req_task_cancel() puts the reference that is being held against the
ctx.

Fixes: 6d816e08 ("io_uring: hold 'ctx' reference around task_work queue + execute")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 202700e1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment