projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
io_uring/rsrc: add custom limit for node caching
[linux-block.git]
/
io_uring
/
rsrc.h
diff --git
a/io_uring/rsrc.h
b/io_uring/rsrc.h
index 7ab9b2b2e7570027576fb148e208266aa6106c8e..8729f2fee2567c0f37301f5ca006553ff83a8ed5 100644
(file)
--- a/
io_uring/rsrc.h
+++ b/
io_uring/rsrc.h
@@
-6,6
+6,8
@@
#include "alloc_cache.h"
+#define IO_NODE_ALLOC_CACHE_MAX 32
+
#define IO_RSRC_TAG_TABLE_SHIFT (PAGE_SHIFT - 3)
#define IO_RSRC_TAG_TABLE_MAX (1U << IO_RSRC_TAG_TABLE_SHIFT)
#define IO_RSRC_TAG_TABLE_MASK (IO_RSRC_TAG_TABLE_MAX - 1)