]> git.karo-electronics.de Git - linux-beck.git/commit
rcu_tree: Avoid touching rnp->completed when a new GP is started
authorLai Jiangshan <laijs@cn.fujitsu.com>
Tue, 13 Jan 2015 07:30:34 +0000 (15:30 +0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 26 Feb 2015 01:03:05 +0000 (17:03 -0800)
commit3f47da0f32f5e43e6ae901129d5b9c2600011a2c
tree63b3993c69978f0004ab37b957ae4e69aea6cd90
parentee376dbdf27728a2f3d30e2ba10fa387cc4c645b
rcu_tree: Avoid touching rnp->completed when a new GP is started

In rcu_gp_init(), rnp->completed equals to rsp->completed in THEORY,
we don't need to touch it normally.  If something goes wrong,
it will complain and fixup rnp->completed and avoid oops.
This commit thus avoids the normal needless store to rnp->completed.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/tree.c