diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-01-10 19:47:10 -0800 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-02-25 17:03:03 -0800 |
commit | ee376dbdf27728a2f3d30e2ba10fa387cc4c645b (patch) | |
tree | a737bb2123666633ff8a0c50bb7130293bddf9bf /include/linux/rcupdate.h | |
parent | c517d838eb7d07bbe9507871fab3931deccff539 (diff) | |
download | linux-stable-ee376dbdf27728a2f3d30e2ba10fa387cc4c645b.tar.gz linux-stable-ee376dbdf27728a2f3d30e2ba10fa387cc4c645b.tar.bz2 linux-stable-ee376dbdf27728a2f3d30e2ba10fa387cc4c645b.zip |
rcu: Consolidate rcu_synchronize and wakeme_after_rcu()
There are currently duplicate identical definitions of the
rcu_synchronize() structure and the wakeme_after_rcu() function.
Thie commit therefore consolidates them.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'include/linux/rcupdate.h')
-rw-r--r-- | include/linux/rcupdate.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h index 78097491cd99..3e6afed51051 100644 --- a/include/linux/rcupdate.h +++ b/include/linux/rcupdate.h @@ -195,6 +195,15 @@ void call_rcu_sched(struct rcu_head *head, void synchronize_sched(void); +/* + * Structure allowing asynchronous waiting on RCU. + */ +struct rcu_synchronize { + struct rcu_head head; + struct completion completion; +}; +void wakeme_after_rcu(struct rcu_head *head); + /** * call_rcu_tasks() - Queue an RCU for invocation task-based grace period * @head: structure to be used for queueing the RCU updates. |