]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rcu: Simplify quiescent-state detection
authorPaul E. McKenney <paul.mckenney@linaro.org>
Tue, 21 Aug 2012 22:00:05 +0000 (15:00 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 5 Sep 2012 19:01:33 +0000 (12:01 -0700)
commit82dd45e1a997982ec689d2c0788645129c33cfe2
tree0e0796df32162763cec4f4f0a720cf79b5c5e3c4
parent7d7c762605212e970db7443e8193a19c6311f63e
rcu: Simplify quiescent-state detection

The current quiescent-state detection algorithm is needlessly
complex.  It records the grace-period number corresponding to
the quiescent state at the time of the quiescent state, which
works, but it seems better to simply erase any record of previous
quiescent states at the time that the CPU notices the new grace
period.  This has the further advantage of removing another piece
of RCU for which lockless reasoning is required.

Therefore, this commit makes this change.

Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
kernel/rcutree.c
kernel/rcutree.h
kernel/rcutree_plugin.h
kernel/rcutree_trace.c