diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-03-21 18:35:57 +0100 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-04-18 20:38:21 +0200 |
commit | f1ec57a462314f3d1cd0c9c8a04979228aa9d38c (patch) | |
tree | 1b4e665154ffa4d2f7106c67d40e89db699e65fc /kernel | |
parent | srcu: Improve rcu_seq grace-period-counter abstraction (diff) | |
download | linux-f1ec57a462314f3d1cd0c9c8a04979228aa9d38c.tar.xz linux-f1ec57a462314f3d1cd0c9c8a04979228aa9d38c.zip |
srcu: Allow a second bit in rcu_seq for SRCU state
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>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/rcu/rcu.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) /* |