Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1705112
| From | Neeraj Upadhyay <neeraju@codeaurora.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] rcu: Fix up pending cbs check in rcu_prepare_for_idle |
| Date | 2017-08-07 08:00 +0200 |
| Message-ID | <ubJf4-4dI-13@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Pending cbs check in rcu_prepare_for_idle is inversed
in the sense that, it should accelerate if there are
pending cbs; but, the check does the opposite. So,
fix it.
Fixes: 15fecf89e46a ("srcu: Abstract multi-tail callback list handling")
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
---
kernel/rcu/tree_plugin.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h
index 908b309..b8f51df 100644
--- a/kernel/rcu/tree_plugin.h
+++ b/kernel/rcu/tree_plugin.h
@@ -1493,7 +1493,7 @@ static void rcu_prepare_for_idle(void)
rdtp->last_accelerate = jiffies;
for_each_rcu_flavor(rsp) {
rdp = this_cpu_ptr(rsp->rda);
- if (rcu_segcblist_pend_cbs(&rdp->cblist))
+ if (!rcu_segcblist_pend_cbs(&rdp->cblist))
continue;
rnp = rdp->mynode;
raw_spin_lock_rcu_node(rnp); /* irqs already disabled. */
--
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a
member of the Code Aurora Forum, hosted by The Linux Foundation
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] rcu: Fix up pending cbs check in rcu_prepare_for_idle Neeraj Upadhyay <neeraju@codeaurora.org> - 2017-08-07 08:00 +0200
Re: [PATCH] rcu: Fix up pending cbs check in rcu_prepare_for_idle "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-08-07 14:50 +0200
Re: [PATCH] rcu: Fix up pending cbs check in rcu_prepare_for_idle Neeraj Upadhyay <neeraju@codeaurora.org> - 2017-08-07 16:10 +0200
Re: [PATCH] rcu: Fix up pending cbs check in rcu_prepare_for_idle "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-08-07 16:20 +0200
csiph-web