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


Groups > linux.kernel > #1626555 > unrolled thread

[PATCH v3 tip/core/rcu 31/40] srcu: Allow a second bit in rcu_seq for SRCU state

Started by"Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
First post2017-04-19 19:00 +0200
Last post2017-04-19 19:00 +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 v3 tip/core/rcu 31/40] srcu: Allow a second bit in rcu_seq for SRCU state "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-04-19 19:00 +0200

#1626555 — [PATCH v3 tip/core/rcu 31/40] srcu: Allow a second bit in rcu_seq for SRCU state

From"Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Date2017-04-19 19:00 +0200
Subject[PATCH v3 tip/core/rcu 31/40] srcu: Allow a second bit in rcu_seq for SRCU state
Message-ID<ty17s-5PA-35@gated-at.bofh.it>
This commit increases the number of reserved bits at the bottom of an
rcu_seq grace-period counter from one to two, as will be needed to
accommodate SRCU's three-state grace periods.

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

diff --git a/kernel/rcu/rcu.h b/kernel/rcu/rcu.h
index c62df93bfc1b..87a0ac95b551 100644
--- a/kernel/rcu/rcu.h
+++ b/kernel/rcu/rcu.h
@@ -61,7 +61,7 @@
  * Grace-period counter management.
  */
 
-#define RCU_SEQ_CTR_SHIFT	1
+#define RCU_SEQ_CTR_SHIFT	2
 #define RCU_SEQ_STATE_MASK	((1 << RCU_SEQ_CTR_SHIFT) - 1)
 
 /*
-- 
2.5.2

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web