rcu: Add RCU-preempt check for waiting on newly onlined CPU
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 3 May 2018 17:35:33 +0000 (10:35 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 12 Jul 2018 22:39:05 +0000 (15:39 -0700)
commit1f3e5f51b933cbc25e3da0cdbdac40716df04ddb
tree5a8524d4be9f45b9848d62bf985b0c43ac894d04
parent1e64b15a4b102e1cd059d4d798b7a78f93341333
rcu: Add RCU-preempt check for waiting on newly onlined CPU

RCU should only be waiting on CPUs that were online at the time that the
current grace period started.  Failure to abide by this rule can result
in confusing splats during grace-period cleanup and initialization.
This commit therefore adds a check to RCU-preempt's preempted-task
queuing that checks for waiting on newly onlined CPUs.

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