diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2023-08-15 15:46:32 -0700 |
---|---|---|
committer | Frederic Weisbecker <frederic@kernel.org> | 2023-09-11 22:10:47 +0200 |
commit | 5b404fdabacf4bee92d8c66013402a85f18a6a10 (patch) | |
tree | 0dea17abbdfb376809a7c73d433697c9d63b346c /kernel/rcu/rcu.h | |
parent | 243d5ab34446854ceca55146fc0d837655657f8e (diff) | |
download | linux-stable-5b404fdabacf4bee92d8c66013402a85f18a6a10.tar.gz linux-stable-5b404fdabacf4bee92d8c66013402a85f18a6a10.tar.bz2 linux-stable-5b404fdabacf4bee92d8c66013402a85f18a6a10.zip |
rcu: Add RCU CPU stall notifier
It is sometimes helpful to have a way for the subsystem causing
the stall to dump its state when an RCU CPU stall occurs. This
commit therefore bases rcu_stall_chain_notifier_register() and
rcu_stall_chain_notifier_unregister() on atomic notifiers in order to
provide this functionality.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Diffstat (limited to 'kernel/rcu/rcu.h')
-rw-r--r-- | kernel/rcu/rcu.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/rcu/rcu.h b/kernel/rcu/rcu.h index 98e13be411af..ef3bab977407 100644 --- a/kernel/rcu/rcu.h +++ b/kernel/rcu/rcu.h @@ -654,4 +654,10 @@ static inline bool rcu_cpu_beenfullyonline(int cpu) { return true; } bool rcu_cpu_beenfullyonline(int cpu); #endif +#ifdef CONFIG_RCU_STALL_COMMON +int rcu_stall_notifier_call_chain(unsigned long val, void *v); +#else // #ifdef CONFIG_RCU_STALL_COMMON +static inline int rcu_stall_notifier_call_chain(unsigned long val, void *v) { return NOTIFY_DONE; } +#endif // #else // #ifdef CONFIG_RCU_STALL_COMMON + #endif /* __LINUX_RCU_H */ |