]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rcu: Adjust for unconditional ->completed assignment
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 11 Jul 2012 12:23:18 +0000 (05:23 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 5 Sep 2012 19:00:41 +0000 (12:00 -0700)
commit5dd52d289545e59609427f689830882b9466f06f
tree41239f0beaf8d2648a21bb129a067844e8650847
parent95b18ddc421c13cad37cb1aca92d3ad2db8c3cb7
rcu: Adjust for unconditional ->completed assignment

Now that the rcu_node structures' ->completed fields are unconditionally
assigned at grace-period cleanup time, they should already have the
correct value for the new grace period at grace-period initialization
time.  This commit therefore inserts a WARN_ON_ONCE() to verify this
invariant.

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