summaryrefslogtreecommitdiffstats
path: root/kernel/srcu.c
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2012-10-13 01:14:15 +0800
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2012-10-23 14:54:42 -0700
commitf2ebfbc991044fd5b89d4529741d7500feb37fbd (patch)
treea3bcb1b376b5c0efc441deac6f63652b71791942 /kernel/srcu.c
parent4e87b2d7e887df3fe251dd7f702591a3acf369ca (diff)
downloadlinux-stable-f2ebfbc991044fd5b89d4529741d7500feb37fbd.tar.gz
linux-stable-f2ebfbc991044fd5b89d4529741d7500feb37fbd.tar.bz2
linux-stable-f2ebfbc991044fd5b89d4529741d7500feb37fbd.zip
srcu: Export process_srcu()
Because process_srcu() will be used in DEFINE_SRCU(), which is a macro that could be expanded pretty much anywhere, it can no longer be static. Note that process_srcu() is still internal to srcu.h. Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/srcu.c')
-rw-r--r--kernel/srcu.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/srcu.c b/kernel/srcu.c
index 0b99f27fa2f7..b363b0924561 100644
--- a/kernel/srcu.c
+++ b/kernel/srcu.c
@@ -94,9 +94,6 @@ static inline void rcu_batch_move(struct rcu_batch *to, struct rcu_batch *from)
}
}
-/* single-thread state-machine */
-static void process_srcu(struct work_struct *work);
-
static int init_srcu_struct_fields(struct srcu_struct *sp)
{
sp->completed = 0;
@@ -639,7 +636,7 @@ static void srcu_reschedule(struct srcu_struct *sp)
/*
* This is the work-queue function that handles SRCU grace periods.
*/
-static void process_srcu(struct work_struct *work)
+void process_srcu(struct work_struct *work)
{
struct srcu_struct *sp;
@@ -650,3 +647,4 @@ static void process_srcu(struct work_struct *work)
srcu_invoke_callbacks(sp);
srcu_reschedule(sp);
}
+EXPORT_SYMBOL_GPL(process_srcu);