diff options
author | Paul E. McKenney <paulmck@linux.ibm.com> | 2019-04-12 21:34:41 +0200 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.ibm.com> | 2019-08-13 23:34:50 +0200 |
commit | 1bb5f9b95afe5d9d6b586389ce5e8f461a5b671c (patch) | |
tree | e9fbae8771f5b45cc11b299883c3d477902642f1 /kernel/rcu/rcu_segcblist.h | |
parent | rcu/nocb: Print gp/cb kthread hierarchy if dump_tree (diff) | |
download | linux-1bb5f9b95afe5d9d6b586389ce5e8f461a5b671c.tar.xz linux-1bb5f9b95afe5d9d6b586389ce5e8f461a5b671c.zip |
rcu/nocb: Use separate flag to indicate disabled ->cblist
NULLing the RCU_NEXT_TAIL pointer was a clever way to save a byte, but
forward-progress considerations would require that this pointer be both
NULL and non-NULL, which, absent a quantum-computer port of the Linux
kernel, simply won't happen. This commit therefore creates as separate
->enabled flag to replace the current NULL checks.
[ paulmck: Add include files per 0day test robot and -next. ]
Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Diffstat (limited to 'kernel/rcu/rcu_segcblist.h')
-rw-r--r-- | kernel/rcu/rcu_segcblist.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/rcu_segcblist.h b/kernel/rcu/rcu_segcblist.h index 822a39da0533..b2de7b32da29 100644 --- a/kernel/rcu/rcu_segcblist.h +++ b/kernel/rcu/rcu_segcblist.h @@ -63,7 +63,7 @@ static inline long rcu_segcblist_n_nonlazy_cbs(struct rcu_segcblist *rsclp) */ static inline bool rcu_segcblist_is_enabled(struct rcu_segcblist *rsclp) { - return !!rsclp->tails[RCU_NEXT_TAIL]; + return rsclp->enabled; } /* |