Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1467711 > unrolled thread

[PATCH tip/core/rcu 5/6] rcu: Exclude RCU-offline CPUs from expedited grace periods

Started by"Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
First post2016-08-22 17:30 +0200
Last post2016-08-22 17:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH tip/core/rcu 5/6] rcu: Exclude RCU-offline CPUs from expedited grace periods "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2016-08-22 17:30 +0200

#1467711 — [PATCH tip/core/rcu 5/6] rcu: Exclude RCU-offline CPUs from expedited grace periods

From"Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Date2016-08-22 17:30 +0200
Subject[PATCH tip/core/rcu 5/6] rcu: Exclude RCU-offline CPUs from expedited grace periods
Message-ID<s8ZkJ-81a-7@gated-at.bofh.it>
The expedited RCU grace periods currently rely on a failure indication
from smp_call_function_single() to determine that a given CPU is offline.
This works after a fashion, but is more contorted and less precise than
relying on RCU's internal state.  This commit therefore takes a first
step towards relying on internal state.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
---
 kernel/rcu/tree_exp.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/kernel/rcu/tree_exp.h b/kernel/rcu/tree_exp.h
index f316683b18f1..3bc4b3dda801 100644
--- a/kernel/rcu/tree_exp.h
+++ b/kernel/rcu/tree_exp.h
@@ -359,7 +359,8 @@ static void sync_rcu_exp_select_cpus(struct rcu_state *rsp,
 			struct rcu_dynticks *rdtp = &per_cpu(rcu_dynticks, cpu);
 
 			if (raw_smp_processor_id() == cpu ||
-			    !(atomic_add_return(0, &rdtp->dynticks) & 0x1))
+			    !(atomic_add_return(0, &rdtp->dynticks) & 0x1) ||
+			    !(rnp->qsmaskinitnext & rdp->grpmask))
 				mask_ofl_test |= rdp->grpmask;
 		}
 		mask_ofl_ipi = rnp->expmask & ~mask_ofl_test;
-- 
2.5.2

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web