srcu: Add boot-time control over srcu_node array allocation
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 25 Jan 2022 23:41:10 +0000 (15:41 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 8 Feb 2022 19:09:33 +0000 (11:09 -0800)
commit53e008fa97771c243f724b98d645cbe22a478441
tree9c1e65ee6cd3e9a9747c67309cc151cbf9a1e057
parent12e1f9349362c6b0030223b414df46179a4ecf63
srcu: Add boot-time control over srcu_node array allocation

This commit adds an srcu_tree.convert_to_big kernel parameter that either
refuses to convert at all (0), converts immediately at init_srcu_struct()
time (1), or lets rcutorture convert it (2).  An addition contention-based
dynamic conversion choice will be added, along with documentation.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/srcutree.c