OSDN Git Service

rcu: Consolidate PREEMPT and !PREEMPT synchronize_rcu()
authorPaul E. McKenney <paulmck@linux.ibm.com>
Thu, 29 Nov 2018 18:42:06 +0000 (10:42 -0800)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Fri, 25 Jan 2019 23:28:28 +0000 (15:28 -0800)
commite5bc3af7734f90278a47906d917852a85544510b
tree600c386d8d0605b7f7f16c3046042d0c66a2da00
parent3cd4ca47aa577689c2e6b295d8f52af0e6f26333
rcu: Consolidate PREEMPT and !PREEMPT synchronize_rcu()

Now that rcu_blocking_is_gp() makes the correct immediate-return
decision for both PREEMPT and !PREEMPT, a single implementation of
synchronize_rcu() will work correctly under both configurations.
This commit therefore eliminates a few lines of code by consolidating
the two implementations of synchronize_rcu().

Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
kernel/rcu/tree.c
kernel/rcu/tree_exp.h
kernel/rcu/tree_plugin.h