rcu/nocb: Use separate flag to indicate disabled ->cblist
authorPaul E. McKenney <paulmck@linux.ibm.com>
Fri, 12 Apr 2019 19:34:41 +0000 (12:34 -0700)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 13 Aug 2019 21:34:50 +0000 (14:34 -0700)
commit1bb5f9b95afe5d9d6b586389ce5e8f461a5b671c
treee9fbae8771f5b45cc11b299883c3d477902642f1
parent18cd8c93e69e3853eb408980089fb3c58813f922
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>
include/linux/rcu_segcblist.h
kernel/rcu/rcu_segcblist.c
kernel/rcu/rcu_segcblist.h
kernel/rcu/tree_plugin.h