diff options
author | Jens Axboe <axboe@kernel.dk> | 2023-06-07 22:41:20 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-06-07 22:59:22 +0200 |
commit | d86eaed185e9c6052d1ee2ca538f1936ff255887 (patch) | |
tree | 47c9f0eacf4b7b17942df3530fdb001f854f6820 /io_uring/timeout.c | |
parent | io_uring: avoid indirect function calls for the hottest task_work (diff) | |
download | linux-d86eaed185e9c6052d1ee2ca538f1936ff255887.tar.xz linux-d86eaed185e9c6052d1ee2ca538f1936ff255887.zip |
io_uring: cleanup io_aux_cqe() API
Everybody is passing in the request, so get rid of the io_ring_ctx and
explicit user_data pass-in. Both the ctx and user_data can be deduced
from the request at hand.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/timeout.c')
-rw-r--r-- | io_uring/timeout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io_uring/timeout.c b/io_uring/timeout.c index 350eb830b485..fb0547b35dcd 100644 --- a/io_uring/timeout.c +++ b/io_uring/timeout.c @@ -73,8 +73,8 @@ static void io_timeout_complete(struct io_kiocb *req, struct io_tw_state *ts) if (!io_timeout_finish(timeout, data)) { bool filled; - filled = io_aux_cqe(ctx, ts->locked, req->cqe.user_data, -ETIME, - IORING_CQE_F_MORE, false); + filled = io_aux_cqe(req, ts->locked, -ETIME, IORING_CQE_F_MORE, + false); if (filled) { /* re-arm timer */ spin_lock_irq(&ctx->timeout_lock); |