Skip to content

Commit e142e9c

Browse files
isilenceaxboe
authored andcommitted
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: 6af3f48 ("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>
1 parent bd44d7e commit e142e9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

io_uring/timeout.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ void io_queue_linked_timeout(struct io_kiocb *req)
639639

640640
static bool io_match_task(struct io_kiocb *head, struct task_struct *task,
641641
bool cancel_all)
642-
__must_hold(&req->ctx->timeout_lock)
642+
__must_hold(&head->ctx->timeout_lock)
643643
{
644644
struct io_kiocb *req;
645645

0 commit comments

Comments
 (0)