rcu: Make __call_rcu() handle invocation from idle
authorPaul E. McKenney <paul.mckenney@linaro.org>
Wed, 23 May 2012 05:10:24 +0000 (22:10 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 2 Jul 2012 19:34:24 +0000 (12:34 -0700)
commit62fde6edf12b60fddb13a3f0a779c8be0bb7447e
tree2fa26e28ce311acb29c60f1595235240be6e7d97
parent28f5c693d03530eb15c5354f758b789189b98c37
rcu: Make __call_rcu() handle invocation from idle

Although __call_rcu() is handled correctly when called from a momentary
non-idle period, if it is called on a CPU that RCU believes to be idle
on RCU_FAST_NO_HZ kernels, the callback might be indefinitely postponed.
This commit therefore ensures that RCU is aware of the new callback and
has a chance to force the CPU out of dyntick-idle mode when a new callback
is posted.

Reported-by: Frederic Weisbecker <fweisbec@gmail.com>
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>
include/linux/rcupdate.h
kernel/rcutree.c