summaryrefslogtreecommitdiffstats
path: root/io_uring/io_uring.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-03-21 07:53:07 -0600
committerJens Axboe <axboe@kernel.dk>2024-04-15 08:10:25 -0600
commitda22bdf38be2f2ba557d3031108614ebbba265e1 (patch)
tree04ffcdfb6445283e0703be867be4f901c8960f22 /io_uring/io_uring.c
parent414d0f45c316221acbf066658afdbae5b354a5cc (diff)
downloadlinux-da22bdf38be2f2ba557d3031108614ebbba265e1.tar.gz
linux-da22bdf38be2f2ba557d3031108614ebbba265e1.tar.bz2
linux-da22bdf38be2f2ba557d3031108614ebbba265e1.zip
io_uring/poll: shrink alloc cache size to 32
This should be plenty, rather than the default of 128, and matches what we have on the rsrc and futex side as well. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/io_uring.c')
-rw-r--r--io_uring/io_uring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c
index 1d453eb8e49f..8e53b93eeb18 100644
--- a/io_uring/io_uring.c
+++ b/io_uring/io_uring.c
@@ -308,7 +308,7 @@ static __cold struct io_ring_ctx *io_ring_ctx_alloc(struct io_uring_params *p)
INIT_HLIST_HEAD(&ctx->io_buf_list);
ret = io_alloc_cache_init(&ctx->rsrc_node_cache, IO_NODE_ALLOC_CACHE_MAX,
sizeof(struct io_rsrc_node));
- ret |= io_alloc_cache_init(&ctx->apoll_cache, IO_ALLOC_CACHE_MAX,
+ ret |= io_alloc_cache_init(&ctx->apoll_cache, IO_POLL_ALLOC_CACHE_MAX,
sizeof(struct async_poll));
ret |= io_alloc_cache_init(&ctx->netmsg_cache, IO_ALLOC_CACHE_MAX,
sizeof(struct io_async_msghdr));