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

io_uring: cancel work if task_work_add() fails



We currently move it to the io_wqe_manager for execution, but we cannot
safely do so as we may lack some of the state to execute it out of
context. As we cancel work anyway when the ring/task exits, just mark
this request as canceled and io_async_task_func() will do the right
thing.

Fixes: aa96bf8a ("io_uring: use io-wq manager as backup task if task is exiting")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 948a7749
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