io_uring: avoid taking ctx refs for task-cancel
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 28 Feb 2021 22:35:09 +0000 (22:35 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 22 Mar 2021 13:42:44 +0000 (07:42 -0600)
commit0a2349da83f4e47ccc0b7e730a5b79ed06d77b90
treeef8fe87d5be9319c477c56d6c351a205c1a42008
parent1fc12ced00922f1c9db117db10f2db005ff9d9e5
io_uring: avoid taking ctx refs for task-cancel

Don't bother to take a ctx->refs for io_req_task_cancel() because it
take uring_lock before putting a request, and the context is promised to
stay alive until unlock happens.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c