commit | 87ceb6a6b81eca000911403446d4c6043b4e4f82 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Mon Sep 14 08:20:12 2020 -0600 |
committer | Jens Axboe <axboe@kernel.dk> | Mon Sep 14 10:22:14 2020 -0600 |
tree | 5151e4355500d30aceaad721b49313e05cebf65d | |
parent | 202700e18acbed55970dbb9d4d518ac59b1172c8 [diff] |
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: 6d816e088c35 ("io_uring: hold 'ctx' reference around task_work queue + execute") Signed-off-by: Jens Axboe <axboe@kernel.dk>