]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rcu: Provide a boot time parameter to control lazy RCU
authorQais Yousef <qyousef@layalina.io>
Sun, 3 Dec 2023 01:12:52 +0000 (01:12 +0000)
committerBoqun Feng <boqun.feng@gmail.com>
Wed, 14 Feb 2024 16:00:57 +0000 (08:00 -0800)
commit7f66f099de4dc4b1a66a3f94e6db16409924a6f8
tree5ca3a31d12df9a65d32b9001372210857195f393
parent499d7e7e83d25fcf0fa1a8c0be6857a84cbf6a4a
rcu: Provide a boot time parameter to control lazy RCU

To allow more flexible arrangements while still provide a single kernel
for distros, provide a boot time parameter to enable/disable lazy RCU.

Specify:

rcutree.enable_rcu_lazy=[y|1|n|0]

Which also requires

rcu_nocbs=all

at boot time to enable/disable lazy RCU.

To disable it by default at build time when CONFIG_RCU_LAZY=y, the new
CONFIG_RCU_LAZY_DEFAULT_OFF can be used.

Signed-off-by: Qais Yousef (Google) <qyousef@layalina.io>
Tested-by: Andrea Righi <andrea.righi@canonical.com>
Reviewed-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Documentation/admin-guide/kernel-parameters.txt
kernel/rcu/Kconfig
kernel/rcu/tree.c