Merge "kernel: rcu: Panic on RCU stall"

This commit is contained in:
qctecmdr 2019-07-31 18:17:41 -07:00 • committed by Gerrit - the friendly Code Review server
commit 8e9118fc64
2 changed files with 12 additions and 1 deletions

View file

@ -57,6 +57,17 @@ config RCU_CPU_STALL_TIMEOUT
RCU grace period persists, additional CPU stall warnings are
printed at more widely spaced intervals.
config RCU_PANIC_ON_STALL
int "Panic on RCU Stalls"
range 0 1
default 0
depends on RCU_STALL_COMMON
help
Panic if a given RCU grace period extends more than the specified
number of seconds instead of just printing a CPU stall warning.
This helps to collect cpu context as part of ramdumps for post
mortem analysis.
config RCU_TRACE
bool "Enable tracing for RCU"
depends on DEBUG_KERNEL

View file

@ -12,7 +12,7 @@
// Controlling CPU stall warnings, including delay calculation.
/* panic() on RCU Stall sysctl. */
int sysctl_panic_on_rcu_stall __read_mostly;
int sysctl_panic_on_rcu_stall __read_mostly = CONFIG_RCU_PANIC_ON_STALL;
#ifdef CONFIG_PROVE_RCU
#define RCU_STALL_DELAY_DELTA (5 * HZ)