rcu: add rcu_stall_notifier_list

Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: I53a22745174bdab77baee65cf6586402a54fe1da
This commit is contained in:
Huibin Hong
2022-07-29 07:31:08 +00:00
parent d851edc401
commit 012bd50682

View File

@@ -15,6 +15,7 @@
/* panic() on RCU Stall sysctl. */
int sysctl_panic_on_rcu_stall __read_mostly;
ATOMIC_NOTIFIER_HEAD(rcu_stall_notifier_list);
#ifdef CONFIG_PROVE_RCU
#define RCU_STALL_DELAY_DELTA (5 * HZ)
@@ -535,6 +536,8 @@ static void print_other_cpu_stall(unsigned long gp_seq, unsigned long gps)
rcu_check_gp_kthread_starvation();
atomic_notifier_call_chain(&rcu_stall_notifier_list, 0, NULL);
panic_on_rcu_stall();
rcu_force_quiescent_state(); /* Kick them all. */