mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
rcu: add rcu_stall_notifier_list
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com> Change-Id: I53a22745174bdab77baee65cf6586402a54fe1da
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user