Skip to content
Commit c00045be authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

rcu/nocb: Make rcutree_migrate_callbacks() start at leaf rcu_node structure



Because rcutree_migrate_callbacks() is invoked infrequently and because
an exact snapshot of the grace-period state might save some callbacks a
second trip through a grace period, this function has used the root
rcu_node structure.  However, this safe-second-trip optimization
happens only if rcutree_migrate_callbacks() races with grace-period
initialization, so it is not worth the added mental load.  This commit
therefore makes rcutree_migrate_callbacks() start with the leaf rcu_node
structures, as is done elsewhere.

Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.ibm.com>
parent 750d7f6a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment