rcu: Introduce CONFIG_RCU_EXP_CPU_STALL_TIMEOUT
authorUladzislau Rezki <uladzislau.rezki@sony.com>
Wed, 16 Feb 2022 13:52:09 +0000 (14:52 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 24 Feb 2022 17:56:47 +0000 (09:56 -0800)
commite657766253ac5e44dbf8e44b4108e7d91bce5409
tree194e2aac5dc7d46df8fdd6af6b8b48133060d3a8
parent46856c962adc3bef6fbc12e4dbba0fd84d77dbf2
rcu: Introduce CONFIG_RCU_EXP_CPU_STALL_TIMEOUT

Currently both expedited and regular grace period stall warnings use
a single timeout value that with units of seconds.  However, recent
Android use cases problem require a sub-100-millisecond expedited RCU CPU
stall warning.  Given that expedited RCU grace periods normally complete
in far less than a single millisecond, especially for small systems,
this is not unreasonable.

Therefore introduce the CONFIG_RCU_EXP_CPU_STALL_TIMEOUT kernel
configuration that defaults to 20 msec on Android and remains the same
as that of the non-expedited stall warnings otherwise.  It also can be
changed in run-time via: /sys/.../parameters/rcu_exp_cpu_stall_timeout.

Signed-off-by: Uladzislau Rezki <uladzislau.rezki@sony.com>
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Documentation/RCU/stallwarn.rst
Documentation/admin-guide/kernel-parameters.txt
kernel/rcu/Kconfig.debug
kernel/rcu/rcu.h
kernel/rcu/tree_exp.h
kernel/rcu/tree_stall.h
kernel/rcu/update.c