]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: drop 'ctx' ref on task work cancelation
authorJens Axboe <axboe@kernel.dk>
Mon, 14 Sep 2020 14:20:12 +0000 (08:20 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 14 Sep 2020 16:22:14 +0000 (10:22 -0600)
commit15e0e8f21220a1f680592229c1bde98e0d0d6b52
tree5151e4355500d30aceaad721b49313e05cebf65d
parent8f2aed7c89084e9ffb139d0cb7240d36dea3f5a3
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: c08d8ace9aed ("io_uring: hold 'ctx' reference around task_work queue + execute")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c