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>
Mon, 11 Apr 2022 22:51:08 +0000 (15:51 -0700)
commitc69a00a12e26cf4faffdcdb340cb2d059b61d57e
tree348f927f4e0c2ba0ec86e5c7913bd59ef7a7166f
parent0b56f953908a751716f2c8f907942674b60d8db5
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.

[ paulmck: Apply callback-scanning feedback from Neeraj Upadhyay. ]

Co-developed-by: Neeraj Upadhyay <quic_neeraju@quicinc.com>
Signed-off-by: Neeraj Upadhyay <quic_neeraju@quicinc.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Documentation/admin-guide/kernel-parameters.txt
kernel/rcu/srcutree.c