diff options
author | Jens Axboe <axboe@kernel.dk> | 2023-06-07 14:41:20 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-06-07 14:59:22 -0600 |
commit | d86eaed185e9c6052d1ee2ca538f1936ff255887 (patch) | |
tree | 47c9f0eacf4b7b17942df3530fdb001f854f6820 /io_uring/poll.c | |
parent | c92fcfc2bab54451c4f1481755ea244f413455cb (diff) |
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/poll.c')
-rw-r--r-- | io_uring/poll.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io_uring/poll.c b/io_uring/poll.c index 9689806d3c16..6b9179e8228e 100644 --- a/io_uring/poll.c +++ b/io_uring/poll.c @@ -300,8 +300,8 @@ static int io_poll_check_events(struct io_kiocb *req, struct io_tw_state *ts) __poll_t mask = mangle_poll(req->cqe.res & req->apoll_events); - if (!io_aux_cqe(req->ctx, ts->locked, req->cqe.user_data, - mask, IORING_CQE_F_MORE, false)) { + if (!io_aux_cqe(req, ts->locked, mask, + IORING_CQE_F_MORE, false)) { io_req_set_res(req, mask, 0); return IOU_POLL_REMOVE_POLL_USE_RES; } |