OSDN Git Service

rcu: Identify grace period is in progress as we advance up the tree
authorJoel Fernandes (Google) <joel@joelfernandes.org>
Wed, 23 May 2018 06:38:15 +0000 (23:38 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 12 Jul 2018 22:38:57 +0000 (15:38 -0700)
commit226ca5e76692e2c82c17e8e8eedab22043f6ffee
treeaefe152e76957f336a09926fac4821c0ca80c992
parentdf2bf8f7f776cef57e6b27690c7b78c86f259515
rcu: Identify grace period is in progress as we advance up the tree

There's no need to keep checking the same starting node for whether a
grace period is in progress as we advance up the funnel lock loop. Its
sufficient if we just checked it in the start, and then subsequently
checked the internal nodes as we advanced up the combining tree. This
also makes sense because the grace-period updates propogate from the
root to the leaf, so there's a chance we may find a grace period has
started as we advance up, lets check for the same.

Reported-by: Paul McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/tree.c