summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2023-04-04 15:39:57 +0300
committerJens Axboe <axboe@kernel.dk>2023-04-04 18:30:39 +0300
commit69bbc6ade9d9d4e3c556cb83e77b6f3cd9ad3d18 (patch)
tree4031c5792f24423318c90df16a92e9603eb1bc71 /include/linux
parent757ef4682b6aa29fdf752ad47f0d63eb48b261cf (diff)
downloadlinux-69bbc6ade9d9d4e3c556cb83e77b6f3cd9ad3d18.tar.xz
io_uring/rsrc: add custom limit for node caching
The number of entries in the rsrc node cache is limited to 512, which still seems unnecessarily large. Add per cache thresholds and set to to 32 for the rsrc node cache. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/d0cd538b944dac0bf878e276fc0199f21e6bccea.1680576071.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/io_uring_types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/io_uring_types.h b/include/linux/io_uring_types.h
index 5d772e36e7fc..4a6ce03a4903 100644
--- a/include/linux/io_uring_types.h
+++ b/include/linux/io_uring_types.h
@@ -190,6 +190,7 @@ struct io_ev_fd {
struct io_alloc_cache {
struct io_wq_work_node list;
unsigned int nr_cached;
+ unsigned int max_cached;
size_t elem_size;
};