summaryrefslogtreecommitdiff
path: root/io_uring/timeout.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-06-18 09:23:54 -0600
committerJens Axboe <axboe@kernel.dk>2022-07-24 18:39:15 -0600
commit88f52eaad2df2cb5ab49b864d79398c9cb9a57f2 (patch)
tree1b23112aee3df4a0a3722bf94b1811a5a4f336eb /io_uring/timeout.c
parent024b8fde3320ea34d7a5a3fc9dbc47ec736cd8eb (diff)
io_uring: have cancelation API accept io_uring_task directly
We just use the io_kiocb passed in to find the io_uring_task, and we already pass in the ctx via cd->ctx anyway. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/timeout.c')
-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 7e2c341f9762..4af074b8f6b7 100644
--- a/io_uring/timeout.c
+++ b/io_uring/timeout.c
@@ -274,7 +274,7 @@ static void io_req_task_link_timeout(struct io_kiocb *req, bool *locked)
.data = prev->cqe.user_data,
};
- ret = io_try_cancel(req, &cd, issue_flags);
+ ret = io_try_cancel(req->task->io_uring, &cd, issue_flags);
}
io_req_set_res(req, ret ?: -ETIME, 0);
io_req_complete_post(req);