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/io_uring.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/io_uring.c')
-rw-r--r-- | io_uring/io_uring.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index fc511cb6761d..08574a86da72 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -935,9 +935,11 @@ bool io_post_aux_cqe(struct io_ring_ctx *ctx, u64 user_data, s32 res, u32 cflags return __io_post_aux_cqe(ctx, user_data, res, cflags, true); } -bool io_aux_cqe(struct io_ring_ctx *ctx, bool defer, u64 user_data, s32 res, u32 cflags, +bool io_aux_cqe(const struct io_kiocb *req, bool defer, s32 res, u32 cflags, bool allow_overflow) { + struct io_ring_ctx *ctx = req->ctx; + u64 user_data = req->cqe.user_data; struct io_uring_cqe *cqe; unsigned int length; |