rcu: Note quiescent state when CPU goes offline
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 12 Nov 2014 17:57:51 +0000 (09:57 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 6 Jan 2015 19:02:51 +0000 (11:02 -0800)
commit3ba4d0e09bf965297e97adf195e0ea246cfe5c74
treeb191c78fd9d217e3d73743286bdc6ea9deb81847
parent5d0b024973027556b48a09bb36b55dc853ec7c6e
rcu: Note quiescent state when CPU goes offline

The rcu_cleanup_dead_cpu() function (called after a CPU has gone
completely offline) has not reported a quiescent state because there
was probably at least one synchronize_rcu() between the time the CPU
went offline and the CPU_DEAD notifier, and this would have detected
the CPU's offline state via quiescent-state forcing.  However, the plan
is for CPUs to take themselves offline, at which point it makes sense
for them to report their own quiescent state.  This commit makes this
change in preparation for the new CPU-hotplug setup.

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