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>
Thu, 24 Feb 2022 17:46:17 +0000 (09:46 -0800)
commit3b77fbc5ab4d89f36ae8548c0eef7f087697f3f8
tree2400f3be7bff16c0a920857963685b052b7fa317
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.

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

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