summaryrefslogtreecommitdiffstats
path: root/io_uring/poll.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-09-30 21:52:54 +0200
committerJens Axboe <axboe@kernel.dk>2024-10-29 20:43:26 +0100
commit829ab73e7bca455e1a8718325177cfb98b63d0df (patch)
tree8afebad99336efd4f3f7fe78ac96f62997550117 /io_uring/poll.c
parentio_uring/msg_ring: add support for sending a sync message (diff)
downloadlinux-829ab73e7bca455e1a8718325177cfb98b63d0df.tar.xz
linux-829ab73e7bca455e1a8718325177cfb98b63d0df.zip
io_uring/poll: remove 'ctx' argument from io_poll_req_delete()
It's always req->ctx being used anyway, having this as a separate argument (that is then not even used) just makes it more confusing. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/poll.c')
-rw-r--r--io_uring/poll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/io_uring/poll.c b/io_uring/poll.c
index 1f63b60e85e7..175c279e59ea 100644
--- a/io_uring/poll.c
+++ b/io_uring/poll.c
@@ -129,7 +129,7 @@ static void io_poll_req_insert(struct io_kiocb *req)
spin_unlock(&hb->lock);
}
-static void io_poll_req_delete(struct io_kiocb *req, struct io_ring_ctx *ctx)
+static void io_poll_req_delete(struct io_kiocb *req)
{
struct io_hash_table *table = &req->ctx->cancel_table;
u32 index = hash_long(req->cqe.user_data, table->hash_bits);
@@ -165,7 +165,7 @@ static void io_poll_tw_hash_eject(struct io_kiocb *req, struct io_tw_state *ts)
hash_del(&req->hash_node);
req->flags &= ~REQ_F_HASH_LOCKED;
} else {
- io_poll_req_delete(req, ctx);
+ io_poll_req_delete(req);
}
}