diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2013-08-18 15:21:57 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2013-09-23 12:13:44 -0400 |
commit | 829511d8aa7a2179bba57ab4ab277d6f9c77ae5b (patch) | |
tree | 207c0e656e6ed123c508f6722eaeb3bffcbdaf3b | |
parent | 01896f7e0a122e8f20082e24f6f9a340034b9c01 (diff) |
rcu: Fix dubious "if" condition in __call_rcu_nocb_enqueue()
This commit replaces an incorrect (but fortunately functional)
bitwise OR ("|") operator with the correct logical OR ("||").
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
-rw-r--r-- | kernel/rcutree_plugin.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcutree_plugin.h b/kernel/rcutree_plugin.h index 130c97b027f2..6f9aecef8ab6 100644 --- a/kernel/rcutree_plugin.h +++ b/kernel/rcutree_plugin.h | |||
@@ -2108,7 +2108,7 @@ static void __call_rcu_nocb_enqueue(struct rcu_data *rdp, | |||
2108 | 2108 | ||
2109 | /* If we are not being polled and there is a kthread, awaken it ... */ | 2109 | /* If we are not being polled and there is a kthread, awaken it ... */ |
2110 | t = ACCESS_ONCE(rdp->nocb_kthread); | 2110 | t = ACCESS_ONCE(rdp->nocb_kthread); |
2111 | if (rcu_nocb_poll | !t) | 2111 | if (rcu_nocb_poll || !t) |
2112 | return; | 2112 | return; |
2113 | len = atomic_long_read(&rdp->nocb_q_count); | 2113 | len = atomic_long_read(&rdp->nocb_q_count); |
2114 | if (old_rhpp == &rdp->nocb_head) { | 2114 | if (old_rhpp == &rdp->nocb_head) { |