Repository navigation
[Deepin-Kernel-SIG] [Upstream] [linux 6.6-y] rcu: Provide a boot time parameter to control lazy RCU - #532
Conversation
mainline inclusion from mainline-v6.7-rc1 category: performance The return keyword is not needed here. Signed-off-by: Joel Fernandes (Google) <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]> Signed-off-by: Frederic Weisbecker <[email protected]> (cherry picked from commit 4502138)
mainline inclusion from mainline-v6.9-rc1 category: performance 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) <[email protected]> Tested-by: Andrea Righi <[email protected]> Reviewed-by: Paul E. McKenney <[email protected]> Signed-off-by: Boqun Feng <[email protected]> (cherry picked from commit 7f66f09) Signed-off-by: Wentao Guan <[email protected]>
| module_param(enable_rcu_lazy, bool, 0444); | ||
|
|
||
| /** | ||
| * call_rcu_hurry() - Queue RCU callback for invocation after grace period, and |
There was a problem hiding this comment.
WARNING: Prefer a maximum 75 chars per line (possible unwrapped commit description?)
deepin pr auto review代码审查意见:
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Just provide a option to control lazy rcu, when enable lazy rcu in config.
Now we are not enable it, but maybe in future.
To allow more flexible arrangements while still provide a single kernel
for distros, provide a boot time parameter to enable/disable lazy RCU.
Specify:
Which also requires
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) [email protected]
Tested-by: Andrea Righi [email protected]
Reviewed-by: Paul E. McKenney [email protected]
Signed-off-by: Boqun Feng [email protected]