]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Sun, 11 Apr 2021 23:41:57 +0000 (17:41 -0600)
commit6208a495ec7aaad1cb349968ad83cac421795f35
tree0f0dc9006b0a54854aeb948a80239b3bb2110726
parentbd1e1b18c698eed6719f05e6cdf3a6d7b58b0c0a
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