]> 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>
Thu, 20 Sep 2012 21:55:48 +0000 (14:55 -0700)
commitc9961e7659c2ce8dd6d37d030bac580506248e3a
tree738f5f4d00ac87db112fa0dbc8d49cd6318a76ee
parent649db74179e78e4a968f5b47364968b1c512a363
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