]> git.baikalelectronics.ru Git - 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)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 9 Oct 2017 21:24:14 +0000 (14:24 -0700)
commit27c39d7e44d40d55f3a93b4402991fbe54ce1eee
treebb5fbf932d4ecb8e632ec4c4b9c4d8a9da385c36
parentfb8141d6423a2379f3dbd29ab43279906f1659cd
rcu: Fix up pending cbs check in rcu_prepare_for_idle

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: f9052aff4ae7 ("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>
Cc: <stable@vger.kernel.org> # 4.12.x
kernel/rcu/tree_plugin.h