]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
rcu: Fix up pending cbs check in rcu_prepare_for_idle
authorNeeraj Upadhyay <neeraju@codeaurora.org>
Mon, 7 Aug 2017 05:50:10 +0000 (11:20 +0530)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 14 Mar 2018 10:41:54 +0000 (11:41 +0100)
commit4363048b8b76b69ebecbe31883f84f941c8fa7b2
tree62be0280f9076d4e943d08a9a891e368ba8f5c6a
parentbd949d79558f278713c1d13e3b3a40b08405a119
rcu: Fix up pending cbs check in rcu_prepare_for_idle

BugLink: http://bugs.launchpad.net/bugs/1744213
commit 135bd1a230bb69a68c9808a7d25467318900b80a upstream.

The pending-callbacks check in rcu_prepare_for_idle() is backwards.
It should accelerate if there are pending callbacks, but the check
rather uselessly accelerates only if there are no callbacks.  This commit
therefore inverts this check.

Fixes: 15fecf89e46a ("srcu: Abstract multi-tail callback list handling")
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
kernel/rcu/tree_plugin.h