rcu: Check for callback invocation from offline CPUs
authorPaul E. McKenney <paul.mckenney@linaro.org>
Tue, 10 Jan 2012 22:23:29 +0000 (14:23 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 21 Feb 2012 17:03:37 +0000 (09:03 -0800)
commit8146c4e2e2c1972216afece5c50e072e86120e42
treedf8707527f59534595edb0be4f69255d4dff40c8
parent778d250a29224795e6320b58928bafa6b6104a06
rcu: Check for callback invocation from offline CPUs

Because quiescent states are now reported from offline CPUs in
CPU_DYING state, there is some possibility that such a CPU might
note the end of a grace period and attempt to start invoking
callbacks.  This would be a very bad thing, and is supposed to
be prevented by the fact that the CPU_DYING CPU gets rid of all
its callbacks before reporting the quiescent state.  However,
there is other CPU-offline code in the kernel, and it is quite
possible that someone will invoke RCU core processing from that
code.  Therefore, this commit adds a warning for this case.

Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcutree.c