hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/IB5UKT
--------------------------------
This is in line with the default for the mainline, and then this allows us to have a smoother experience at high concurrency.
Signed-off-by: Baokun Li libaokun1@huawei.com --- fs/fscache/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/fs/fscache/main.c b/fs/fscache/main.c index b754486e085f..e8c6c70092e0 100644 --- a/fs/fscache/main.c +++ b/fs/fscache/main.c @@ -46,8 +46,9 @@ DEFINE_PER_CPU(wait_queue_head_t, fscache_object_cong_wait);
/* these values serve as lower bounds, will be adjusted in fscache_init() */ #define FSCACHE_MIN_OBJECT_MAX_ACTIVE 4 -static unsigned int fscache_object_max_active = FSCACHE_MIN_OBJECT_MAX_ACTIVE; -static unsigned int fscache_op_max_active = FSCACHE_MIN_OBJECT_MAX_ACTIVE / 2; +#define FSCACHE_DEF_OBJECT_MAX_ACTIVE 256 +static unsigned int fscache_object_max_active = FSCACHE_DEF_OBJECT_MAX_ACTIVE; +static unsigned int fscache_op_max_active = FSCACHE_DEF_OBJECT_MAX_ACTIVE / 2; static unsigned int fscache_min_object_max_active = FSCACHE_MIN_OBJECT_MAX_ACTIVE; static unsigned int fscache_min_op_max_active = FSCACHE_MIN_OBJECT_MAX_ACTIVE / 2;