]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit368b8d9335f3224ca34ca31d803dcd527451b5d9
tree348f927f4e0c2ba0ec86e5c7913bd59ef7a7166f
parenta11b5d9648d582ec31d894de348624f45c78df8b
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