]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
rcu: Fix TINY_RCU rcu_is_cpu_rrupt_from_idle check
authorPaul E. McKenney <paul.mckenney@linaro.org>
Mon, 29 Oct 2012 11:52:56 +0000 (04:52 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 13 Nov 2012 22:08:34 +0000 (14:08 -0800)
The rcu_is_cpu_rrupt_from_idle() needs to allow for one interrupt level
from the idle loop, but TINY_RCU checks for a call from the idle loop
itself.  This commit fixes this issue.

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

index e4c6a598d6f749c9b5e322c372b953aea29c7b84..e7dce58f9c2aa3fba2b6b3035d9d1f42d3598399 100644 (file)
@@ -195,7 +195,7 @@ EXPORT_SYMBOL(rcu_is_cpu_idle);
  */
 int rcu_is_cpu_rrupt_from_idle(void)
 {
-       return rcu_dynticks_nesting <= 0;
+       return rcu_dynticks_nesting <= 1;
 }
 
 /*