[Devel] [PATCH RH9 16/33] kernel: Export tasklist_lock

Andrey Zhadchenko andrey.zhadchenko at virtuozzo.com
Thu Sep 23 22:08:19 MSK 2021


From: Kirill Tkhai <ktkhai at virtuozzo.com>

Needed for our modules (vzstat).

FIXME: maybe reduce to EXPORT_SYMBOL_GPL().

Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>

(cherry picked from vz8 commit 88e9f6757a92d2687aae51cc63ab8d6c4e1d60cf)
Signed-off-by: Andrey Zhadchenko <andrey.zhadchenko at virtuozzo.com>
---
 kernel/fork.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/fork.c b/kernel/fork.c
index 44f4c2d..b5e04b5 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -139,6 +139,7 @@
 DEFINE_PER_CPU(unsigned long, process_counts) = 0;
 
 __cacheline_aligned DEFINE_RWLOCK(tasklist_lock);  /* outer */
+EXPORT_SYMBOL(tasklist_lock);
 
 #ifdef CONFIG_PROVE_RCU
 int lockdep_tasklist_lock_is_held(void)
-- 
1.8.3.1



More information about the Devel mailing list