OSDN Git Service

srcu: Introduce CLASSIC_SRCU Kconfig option
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 26 Mar 2017 00:23:44 +0000 (17:23 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 18 Apr 2017 18:38:23 +0000 (11:38 -0700)
commitdad81a2026841b5e2651aab58a7398c13cc05847
treef666432234764e97893d37155429223e2c44bd8c
parent32071141b2448458479932fe726ce892cbe1b4e4
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>
include/linux/srcu.h
include/linux/srcuclassic.h [new file with mode: 0644]
init/Kconfig
kernel/rcu/Makefile
kernel/rcu/rcutorture.c
kernel/rcu/srcu.c
kernel/rcu/srcutree.c [new file with mode: 0644]