summaryrefslogtreecommitdiffstats
path: root/io_uring/cancel.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-09-30 22:30:39 +0200
committerJens Axboe <axboe@kernel.dk>2024-10-29 20:43:27 +0100
commit8abf47a8d61c9e8314ae4cfa27e18c8df67c37bc (patch)
tree988ed6a3b1286331822fe2b5ab5c4ec4fcbe05f4 /io_uring/cancel.c
parentio_uring/poll: get rid of per-hashtable bucket locks (diff)
downloadlinux-8abf47a8d61c9e8314ae4cfa27e18c8df67c37bc.tar.xz
linux-8abf47a8d61c9e8314ae4cfa27e18c8df67c37bc.zip
io_uring/cancel: get rid of init_hash_table() helper
All it does is initialize the lists, just move the INIT_HLIST_HEAD() into the one caller. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/cancel.c')
-rw-r--r--io_uring/cancel.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/io_uring/cancel.c b/io_uring/cancel.c
index 755dd5506a5f..cc3475b22ae5 100644
--- a/io_uring/cancel.c
+++ b/io_uring/cancel.c
@@ -232,14 +232,6 @@ done:
return IOU_OK;
}
-void init_hash_table(struct io_hash_table *table, unsigned size)
-{
- unsigned int i;
-
- for (i = 0; i < size; i++)
- INIT_HLIST_HEAD(&table->hbs[i].list);
-}
-
static int __io_sync_cancel(struct io_uring_task *tctx,
struct io_cancel_data *cd, int fd)
{