]> git.baikalelectronics.ru Git - kernel.git/commit
rcu: Fix comparison sense in rcu_needs_cpu()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 13 May 2013 13:53:37 +0000 (06:53 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 14 May 2013 17:53:41 +0000 (10:53 -0700)
commit3e52889e6121201d08ec1119810a16789a8a8c07
treef72dcd0bfd3b3a43852fd745d580faff6d520141
parent8d558d708ac7028555343d7c77c3fa7aa5714f99
rcu: Fix comparison sense in rcu_needs_cpu()

Commit 85968fb69 (rcu: Make RCU_FAST_NO_HZ take advantage of numbered
callbacks) introduced a bug that can result in excessively long grace
periods.  This bug reverse the senes of the "if" statement checking
for lazy callbacks, so that RCU takes a lazy approach when there are
in fact non-lazy callbacks.  This can result in excessive boot, suspend,
and resume times.

This commit therefore fixes the sense of this "if" statement.

Reported-by: Borislav Petkov <bp@alien8.de>
Reported-by: Bjørn Mork <bjorn@mork.no>
Reported-by: Joerg Roedel <joro@8bytes.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Tested-by: Bjørn Mork <bjorn@mork.no>
Tested-by: Joerg Roedel <joro@8bytes.org>
kernel/rcutree_plugin.h