diff options
| author | Pavel Begunkov <asml.silence@gmail.com> | 2024-07-24 12:16:18 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-08-03 08:54:41 +0200 |
| commit | 766b0e807e1d5caeeb1f19344d2e8d3c41e5a3ef (patch) | |
| tree | cbc4c79b391e090d8844359ff5301afeef078e90 /io_uring | |
| parent | b62841e49a2b7938f6fdeaaf93fb57e4eb880bdb (diff) | |
| download | linux-766b0e807e1d5caeeb1f19344d2e8d3c41e5a3ef.tar.gz linux-766b0e807e1d5caeeb1f19344d2e8d3c41e5a3ef.tar.bz2 linux-766b0e807e1d5caeeb1f19344d2e8d3c41e5a3ef.zip | |
io_uring: fix io_match_task must_hold
[ Upstream commit e142e9cd8891b0c6f277ac2c2c254199a6aa56e3 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'io_uring')
| -rw-r--r-- | io_uring/timeout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/timeout.c b/io_uring/timeout.c index 7fd7dbb211d6..4f1f710197d6 100644 --- a/io_uring/timeout.c +++ b/io_uring/timeout.c @@ -644,7 +644,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; |
