summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2024-07-24 13:16:18 +0200
committerJens Axboe <axboe@kernel.dk>2024-07-24 16:01:49 +0200
commite142e9cd8891b0c6f277ac2c2c254199a6aa56e3 (patch)
tree976c7762da85d68f341c07822a49d323cc69dc5d
parentio_uring: don't allow netpolling with SETUP_IOPOLL (diff)
downloadlinux-e142e9cd8891b0c6f277ac2c2c254199a6aa56e3.tar.xz
linux-e142e9cd8891b0c6f277ac2c2c254199a6aa56e3.zip
io_uring: fix io_match_task must_hold
The __must_hold annotation in io_match_task() uses a non existing parameter "req", fix it. Fixes: 6af3f48bf6156 ("io_uring: fix link traversal locking") Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/3e65ee7709e96507cef3d93291746f2c489f2307.1721819383.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--io_uring/timeout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/timeout.c b/io_uring/timeout.c
index 1c9bf07499b1..9973876d91b0 100644
--- a/io_uring/timeout.c
+++ b/io_uring/timeout.c
@@ -639,7 +639,7 @@ void io_queue_linked_timeout(struct io_kiocb *req)
static bool io_match_task(struct io_kiocb *head, struct task_struct *task,
bool cancel_all)
- __must_hold(&req->ctx->timeout_lock)
+ __must_hold(&head->ctx->timeout_lock)
{
struct io_kiocb *req;