]> git.karo-electronics.de Git - linux-beck.git/commit
rcu: Prevent __call_rcu() from invoking RCU core on offline CPUs
authorPaul E. McKenney <paul.mckenney@linaro.org>
Sat, 26 May 2012 15:56:01 +0000 (08:56 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 2 Jul 2012 19:34:24 +0000 (12:34 -0700)
commita16b7a693430406dc229ab0c6b154f669a2031c5
treeb43738c2f447eb4a88fc931d799c33190d56f689
parent62fde6edf12b60fddb13a3f0a779c8be0bb7447e
rcu: Prevent __call_rcu() from invoking RCU core on offline CPUs

The __call_rcu() function will invoke the RCU core, for example, if
it detects that the current CPU has too many callbacks.  However, this
can happen on an offline CPU that is on its way to the idle loop, in
which case it is an error to invoke the RCU core, and the excess callbacks
will be adopted in any case.  This commit therefore adds checks to
__call_rcu() for running on an offline CPU, refraining from invoking
the RCU core in this case.

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