srcu: Introduce CLASSIC_SRCU Kconfig option
The TREE_SRCU rewrite is large and a bit on the non-simple side, so
this commit helps reduce risk by allowing the old v4.11 SRCU algorithm
to be selected using a new CLASSIC_SRCU Kconfig option that depends
on RCU_EXPERT. The default is to use the new TREE_SRCU and TINY_SRCU
algorithms, in order to help get these the testing that they need.
However, if your users do not require the update-side scalability that
is to be provided by TREE_SRCU, select RCU_EXPERT and then CLASSIC_SRCU
to revert back to the old classic SRCU algorithm.
Signed-off-by:
Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Showing
- include/linux/srcu.h 2 additions, 0 deletionsinclude/linux/srcu.h
- include/linux/srcuclassic.h 101 additions, 0 deletionsinclude/linux/srcuclassic.h
- init/Kconfig 19 additions, 2 deletionsinit/Kconfig
- kernel/rcu/Makefile 2 additions, 1 deletionkernel/rcu/Makefile
- kernel/rcu/rcutorture.c 1 addition, 1 deletionkernel/rcu/rcutorture.c
- kernel/rcu/srcu.c 196 additions, 151 deletionskernel/rcu/srcu.c
- kernel/rcu/srcutree.c 613 additions, 0 deletionskernel/rcu/srcutree.c
Loading
Please register or sign in to comment