From 61598093bbdd283a7edc367d900f223070ead8d2 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Fri, 10 May 2024 07:43:03 +0000
Subject: [PATCH] add ax88772C AX88772C_eeprom_tools
---
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