From 6778948f9de86c3cfaf36725a7c87dcff9ba247f Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Mon, 11 Dec 2023 08:20:59 +0000 Subject: [PATCH] kernel_5.10 no rt --- kernel/fs/fscache/main.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/kernel/fs/fscache/main.c b/kernel/fs/fscache/main.c index 85f8cf3..4207f98 100644 --- a/kernel/fs/fscache/main.c +++ b/kernel/fs/fscache/main.c @@ -41,6 +41,8 @@ struct workqueue_struct *fscache_object_wq; struct workqueue_struct *fscache_op_wq; +DEFINE_PER_CPU(wait_queue_head_t, fscache_object_cong_wait); + /* these values serve as lower bounds, will be adjusted in fscache_init() */ static unsigned fscache_object_max_active = 4; static unsigned fscache_op_max_active = 2; @@ -136,6 +138,7 @@ static int __init fscache_init(void) { unsigned int nr_cpus = num_possible_cpus(); + unsigned int cpu; int ret; fscache_object_max_active = @@ -158,6 +161,9 @@ if (!fscache_op_wq) goto error_op_wq; + for_each_possible_cpu(cpu) + init_waitqueue_head(&per_cpu(fscache_object_cong_wait, cpu)); + ret = fscache_proc_init(); if (ret < 0) goto error_proc; -- Gitblit v1.6.2