rcu/nocb: Advance CBs after merge in rcutree_migrate_callbacks()
authorPaul E. McKenney <paulmck@linux.ibm.com>
Wed, 10 Jul 2019 19:54:56 +0000 (12:54 -0700)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 13 Aug 2019 21:38:24 +0000 (14:38 -0700)
commit23651d9b9616060cf86af5e3b15defcf3bcd2642
tree935398d311a190941e15d8fd26b888d09f471ae5
parent273f034065002bf9480601d66404c991b243b91e
rcu/nocb: Advance CBs after merge in rcutree_migrate_callbacks()

The rcutree_migrate_callbacks() invokes rcu_advance_cbs() on both the
offlined CPU's ->cblist and that of the surviving CPU, then merges
them.  However, after the merge, and of the offlined CPU's callbacks
that were not ready to be invoked will no longer be associated with a
grace-period number.  This commit therefore invokes rcu_advance_cbs()
one more time on the merged ->cblist in order to assign a grace-period
number to these callbacks.

Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
kernel/rcu/tree.c