diff options
author | Jens Axboe <axboe@kernel.dk> | 2023-06-07 23:41:20 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-06-07 23:59:22 +0300 |
commit | d86eaed185e9c6052d1ee2ca538f1936ff255887 (patch) | |
tree | 47c9f0eacf4b7b17942df3530fdb001f854f6820 /io_uring/timeout.c | |
parent | c92fcfc2bab54451c4f1481755ea244f413455cb (diff) | |
download | linux-d86eaed185e9c6052d1ee2ca538f1936ff255887.tar.xz |
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); |