aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcu/update.c
diff options
context:
space:
mode:
authorSteven Rostedt <rostedt@goodmis.org>2014-07-02 21:17:19 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-09-07 19:27:23 -0400
commit06c2a9238fad48ec38f1be00455bf942d54377ee (patch)
treeb2f56973c402fde375e949d29bce466b0da7055e /kernel/rcu/update.c
parent3f95aa81d265223fdb13ea2b59883766a05adbdf (diff)
rcu: Export RCU-tasks APIs to GPL modules
This commit exports the RCU-tasks synchronous APIs, synchronize_rcu_tasks() and rcu_barrier_tasks(), to GPL-licensed kernel modules. Signed-off-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'kernel/rcu/update.c')
-rw-r--r--kernel/rcu/update.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/rcu/update.c b/kernel/rcu/update.c
index 403fc4ae539e..aef8109152ce 100644
--- a/kernel/rcu/update.c
+++ b/kernel/rcu/update.c
@@ -430,6 +430,7 @@ void synchronize_rcu_tasks(void)
430 /* Wait for the grace period. */ 430 /* Wait for the grace period. */
431 wait_rcu_gp(call_rcu_tasks); 431 wait_rcu_gp(call_rcu_tasks);
432} 432}
433EXPORT_SYMBOL_GPL(synchronize_rcu_tasks);
433 434
434/** 435/**
435 * rcu_barrier_tasks - Wait for in-flight call_rcu_tasks() callbacks. 436 * rcu_barrier_tasks - Wait for in-flight call_rcu_tasks() callbacks.
@@ -442,6 +443,7 @@ void rcu_barrier_tasks(void)
442 /* There is only one callback queue, so this is easy. ;-) */ 443 /* There is only one callback queue, so this is easy. ;-) */
443 synchronize_rcu_tasks(); 444 synchronize_rcu_tasks();
444} 445}
446EXPORT_SYMBOL_GPL(rcu_barrier_tasks);
445 447
446/* See if the current task has stopped holding out, remove from list if so. */ 448/* See if the current task has stopped holding out, remove from list if so. */
447static void check_holdout_task(struct task_struct *t) 449static void check_holdout_task(struct task_struct *t)