]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
rcu: Add exports for per-CPU variables used for inlining
authorPaul E. McKenney <paul.mckenney@linaro.org>
Tue, 17 Apr 2012 16:24:41 +0000 (09:24 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 25 Apr 2012 03:55:31 +0000 (20:55 -0700)
The new rcu_read_lock_nesting and rcu_read_unlock_special per-CPU
variables need to be accessible from modules to allow rcu_read_lock()
and rcu_read_unlock() to continue to be used from modules.  This
commit therefore adds the needed EXPORT_PER_CPU_SYMBOL_GPL()s.

Reported-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcupdate.c

index d52c68e149fe1cd12c00c4b3420c79fb03358222..ef83774728f416e80587191cfef4d46f0f960e7a 100644 (file)
@@ -53,7 +53,9 @@
 
 #ifdef CONFIG_PREEMPT_RCU
 DEFINE_PER_CPU(int, rcu_read_lock_nesting);
+EXPORT_PER_CPU_SYMBOL_GPL(rcu_read_lock_nesting);
 DEFINE_PER_CPU(int, rcu_read_unlock_special);
+EXPORT_PER_CPU_SYMBOL_GPL(rcu_read_unlock_special);
 #ifdef CONFIG_PROVE_RCU
 DEFINE_PER_CPU(struct task_struct *, rcu_current_task);
 #endif /* #ifdef CONFIG_PROVE_RCU */