Miscellaneous fixes for v5.13
Subsystems (3)
Paul E. McKenney
maintainercover Miscellaneous fixes for v5.13
Hello!
This series contains miscellaneous fixes:
1. Remove superfluous rdp fetch, courtesy of Frederic Weisbecker.
2. Fix CPU-offline trace in rcutree_dying_cpu, courtesy of Neeraj
Upadhyay.
3. Remove spurious instrumentation_end() in rcu_nmi_enter(),
courtesy of Zhouyi Zhou.
4. Replace reference to atomic_ops.rst, courtesy of Akira Yokosawa.
5. Fix kfree_rcu() docbook errors, courtesy of Mauro Carvalho Chehab.
6. Don't try waking ksoftirqd before it has been spawned.
7. Prevent dyntick-idle until ksoftirqd has been spawned.
8. Correctly spell Stephen Hemminger's name.
9. Add explicit barrier() to __rcu_read_unlock().
10. Add a trace event for RCU CPU stall warnings, courtesy of
Sangmoon Kim.
Thanx, Paul
------------------------------------------------------------------------
Documentation/RCU/RTFP.txt | 2 +- include/linux/rculist_nulls.h | 2 +- include/linux/rcupdate.h | 2 +- include/trace/events/rcu.h | 28 ++++++++++++++++++++++++++++ kernel/rcu/tree.c | 4 +--- kernel/rcu/tree_exp.h | 1 + kernel/rcu/tree_plugin.h | 14 +++++++++++++- kernel/rcu/tree_stall.h | 2 ++ kernel/softirq.c | 2 +- 9 files changed, 49 insertions(+), 8 deletions(-)
[email protected]
maintainerPATCH 1/10 rcu: Remove superfluous rdp fetch
From: Frederic Weisbecker <[email protected]>
--- kernel/rcu/tree.c | 1 - 1 file changed, 1 deletion(-)
kernel/rcu/tree.c +0 -1
@@ -648,7 +648,6 @@ static noinstr void rcu_eqs_enter(bool user)instrumentation_begin ();trace_rcu_dyntick (TPS ("Start" ), rdp->dynticks_nesting,0 ,atomic_read (&rdp->dynticks));WARN_ON_ONCE (IS_ENABLED (CONFIG_RCU_EQS_DEBUG ) && !user && !is_idle_task (current)); - rdp =this_cpu_ptr (&rcu_data);rcu_prepare_for_idle ();rcu_preempt_deferred_qs (current);
Signature · 1 line
2.9.5
[email protected]
maintainerPATCH 2/10 rcu: Fix CPU-offline trace in rcutree_dying_cpu
In reply to Paul E. McKenneyFrom: Neeraj Upadhyay <[email protected]>
The condition in the trace_rcu_grace_period() in rcutree_dying_cpu() is backwards, so that it uses the string "cpuofl" when the offline CPU is blocking the current grace period and "cpuofl-bgp" otherwise. Given that the "-bgp" stands for "blocking grace period", this is at best misleading. This commit therefore switches these strings in order to correctly trace whether the outgoing cpu blocks the current grace period.
--- kernel/rcu/tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/rcu/tree.c +1 -1
@@ -2413,7 +2413,7 @@ int rcutree_dying_cpu(unsigned int cpu) blkd = !!(rnp->qsmask & rdp->grpmask);trace_rcu_grace_period (rcu_state.name,READ_ONCE (rnp->gp_seq), - blkd ?TPS ("cpuofl" ) :TPS ("cpuofl-bgp" )); + blkd ?TPS ("cpuofl-bgp" ) :TPS ("cpuofl" ));return 0 ; }
Signature · 1 line
2.9.5
[email protected]
maintainerPATCH 3/10 rcu: Remove spurious instrumentation_end() in rcu_nmi_enter()
In reply to Paul E. McKenneyFrom: Zhouyi Zhou <[email protected]>
In rcu_nmi_enter(), there is an erroneous instrumentation_end() in the second branch of the "if" statement. Oddly enough, "objtool check -f vmlinux.o" fails to complain because it is unable to correctly cover all cases. Instead, objtool visits the third branch first, which marks following trace_rcu_dyntick() as visited. This commit therefore removes the spurious instrumentation_end().
Reported-by Neeraj Upadhyay <[email protected]>
--- kernel/rcu/tree.c | 1 - 1 file changed, 1 deletion(-)
kernel/rcu/tree.c +0 -1
@@ -1076,7 +1076,6 @@ noinstr void rcu_nmi_enter(void) }else if (!in_nmi ()) {instrumentation_begin ();rcu_irq_enter_check_tick (); -instrumentation_end (); }else {instrumentation_begin (); }
Signature · 1 line
2.9.5
[email protected]
maintainerPATCH 4/10 rculist: Replace reference to atomic_ops.rst
In reply to Paul E. McKenneyFrom: Akira Yokosawa <[email protected]>
The hlist_nulls_for_each_entry_rcu() docbook header references the atomic_ops.rst file, which was removed in commit f0400a77ebdc ("atomic:
Delete obsolete documentation"). This commit therefore substitutes a section in memory-barriers.txt discussing the use of barrier() in loops.
--- include/linux/rculist_nulls.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/rculist_nulls.h +1 -1
@@ -161,7 +161,7 @@ static inline void hlist_nulls_add_fake(struct hlist_nulls_node *n)* * The barrier() is needed to make sure compiler doesn't cache first element [1], * as this loop can be restarted [2] -* [1] Documentation/core-api/atomic_ops.rst around line 114 +* [1] Documentation/memory-barriers.txt around line 1533 * [2] Documentation/RCU/rculist_nulls.rst around line 146 */ #define hlist_nulls_for_each_entry_rcu (tpos, pos, head, member) \
Signature · 1 line
2.9.5
[email protected]
maintainerPATCH 5/10 rcu: Fix kfree_rcu() docbook errors
In reply to Paul E. McKenneyFrom: Mauro Carvalho Chehab <[email protected]>
After commit 5130b8fd0690 ("rcu: Introduce kfree_rcu() single-argument macro"), kernel-doc now emits two warnings:
./include/linux/rcupdate.h:884: warning: Excess function parameter 'ptr' description in 'kfree_rcu' ./include/linux/rcupdate.h:884: warning: Excess function parameter 'rhf' description in 'kfree_rcu'
This commit added some macro magic in order to call two different versions of kfree_rcu(), the first having just one argument and the second having two arguments. That makes it difficult to document the kfree_rcu() arguments in the docboook header.
In order to make clearer that this macro accepts optional arguments, this commit uses macro concatenation so that this macro changes from:
#define kfree_rcu kvfree_rcu
to:
#define kfree_rcu(ptr, rhf...) kvfree_rcu(ptr, ## rhf)
That not only helps kernel-doc understand the macro arguments, but also provides a better C definition that makes clearer that the first argument is mandatory and the second one is optional.
--- include/linux/rcupdate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/rcupdate.h +1 -1
@@ -881,7 +881,7 @@ static inline notrace void rcu_read_unlock_sched_notrace(void)* The BUILD_BUG_ON check must not involve any function calls, hence the * checks are done in macros here. */ -#define kfree_rcu kvfree_rcu +#define kfree_rcu(ptr, rhf...) kvfree_rcu(ptr, ## rhf)/** * kvfree_rcu() - kvfree an object after a grace period.
Signature · 1 line
2.9.5
[email protected]
maintainerPATCH 6/10 softirq: Don't try waking ksoftirqd before it has been spawned
In reply to Paul E. McKenneyFrom: "Paul E. McKenney" <[email protected]>
If there is heavy softirq activity, the softirq system will attempt to awaken ksoftirqd and will stop the traditional back-of-interrupt softirq processing. This is all well and good, but only if the ksoftirqd kthreads already exist, which is not the case during early boot, in which case the system hangs.
One reproducer is as follows:
tools/testing/selftests/rcutorture/bin/kvm.sh --allcpus --duration 2 --configs "TREE03" --kconfig "CONFIG_DEBUG_LOCK_ALLOC=y CONFIG_PROVE_LOCKING=y CONFIG_NO_HZ_IDLE=y CONFIG_HZ_PERIODIC=n" --bootargs "threadirqs=1" --trust-make
This commit therefore adds a couple of existence checks for ksoftirqd and forces back-of-interrupt softirq processing when ksoftirqd does not yet exist. With this change, the above test passes.
--- kernel/softirq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/softirq.c +1 -1
@@ -211,7 +211,7 @@ static inline void invoke_softirq(void)if (ksoftirqd_running (local_softirq_pending ()))return ; -if (!force_irqthreads) { +if (!force_irqthreads || !__this_cpu_read (ksoftirqd)) {#ifdef CONFIG_HAVE_IRQ_EXIT_ON_IRQ_STACK /* * We can safely execute softirq on the current stack if
Signature · 1 line
2.9.5
Re: [PATCH tip/core/rcu 06/10] softirq: Don't try waking ksoftirqd before it has been spawned
Quoted 16 lines · On Wed, Mar 03, 2021 at 04:00:15PM -0800, [email protected] wrote:
From: "Paul E. McKenney" <[email protected]>
If there is heavy softirq activity, the softirq system will attempt to awaken ksoftirqd and will stop the traditional back-of-interrupt softirq processing. This is all well and good, but only if the ksoftirqd kthreads already exist, which is not the case during early boot, in which case the system hangs.
One reproducer is as follows:
tools/testing/selftests/rcutorture/bin/kvm.sh--allcpus --duration 2 --configs "TREE03" --kconfig "CONFIG_DEBUG_LOCK_ALLOC=yCONFIG_PROVE_LOCKING=yCONFIG_NO_HZ_IDLE=yCONFIG_HZ_PERIODIC=n" --bootargs "threadirqs=1" --trust-makeThis commit therefore adds a couple of existence checks for ksoftirqd and forces back-of-interrupt softirq processing when ksoftirqd does not yet exist. With this change, the above test passes.
Quoted 6 lines
Reported-by Sebastian Andrzej Siewior <[email protected]>Reported-by Uladzislau Rezki <[email protected]>Cc Peter Zijlstra <[email protected]>Cc Thomas Gleixner <[email protected]>[ paulmck: Remove unneeded check per Sebastian Siewior feedback. ]Signed-off-by Paul E. McKenney <[email protected]>
Re: [PATCH tip/core/rcu 06/10] softirq: Don't try waking ksoftirqd before it has been spawned
Quoted 17 lines · Frederic Weisbecker
Quoted 16 lines · On Wed, Mar 03, 2021 at 04:00:15PM -0800, [email protected] wrote:
From: "Paul E. McKenney" <[email protected]>
If there is heavy softirq activity, the softirq system will attempt to awaken ksoftirqd and will stop the traditional back-of-interrupt softirq processing. This is all well and good, but only if the ksoftirqd kthreads already exist, which is not the case during early boot, in which case the system hangs.
One reproducer is as follows:
tools/testing/selftests/rcutorture/bin/kvm.sh--allcpus --duration 2 --configs "TREE03" --kconfig "CONFIG_DEBUG_LOCK_ALLOC=yCONFIG_PROVE_LOCKING=yCONFIG_NO_HZ_IDLE=yCONFIG_HZ_PERIODIC=n" --bootargs "threadirqs=1" --trust-makeThis commit therefore adds a couple of existence checks for ksoftirqd and forces back-of-interrupt softirq processing when ksoftirqd does not yet exist. With this change, the above test passes.
Quoted 8 lines
Quoted 6 lines
Reported-by Sebastian Andrzej Siewior <[email protected]>Reported-by Uladzislau Rezki <[email protected]>Cc Peter Zijlstra <[email protected]>Cc Thomas Gleixner <[email protected]>[ paulmck: Remove unneeded check per Sebastian Siewior feedback. ]Signed-off-by Paul E. McKenney <[email protected]>Reviewed-by Frederic Weisbecker <[email protected]>
Applied, thank you!
Thanx, Paul
[email protected]
maintainerPATCH 7/10 rcu: Prevent dyntick-idle until ksoftirqd has been spawned
In reply to Paul E. McKenneyFrom: "Paul E. McKenney" <[email protected]>
After interrupts have enabled at boot but before some random point in early_initcall() processing, softirq processing is unreliable. If softirq sees a need to push softirq-handler invocation to ksoftirqd during this time, then those handlers can be delayed until the ksoftirqd kthreads have been spawned, which happens at some random point in the early_initcall() processing. In many cases, this delay is just fine. However, if the boot sequence blocks waiting for a wakeup from a softirq handler, this delay will result in a silent-hang deadlock.
This commit therefore prevents these hangs by ensuring that the tick stays active until after the ksoftirqd kthreads have been spawned. This change causes the tick to eventually drain the backlog of delayed softirq handlers, breaking this deadlock.
--- kernel/rcu/tree_plugin.h | 11 +++++++++++ 1 file changed, 11 insertions(+)
kernel/rcu/tree_plugin.h +11 -0
@@ -1255,6 +1255,11 @@ static void rcu_prepare_kthreads(int cpu)*/ int rcu_needs_cpu (u64 basemono,u64 *nextevt) { +/* Through early_initcall(), need tick for softirq handlers. */ +if (!IS_ENABLED (CONFIG_HZ_PERIODIC ) && !this_cpu_ksoftirqd ()) { + *nextevt =1 ; +return 1 ; + } *nextevt =KTIME_MAX ;return !rcu_segcblist_empty (&this_cpu_ptr (&rcu_data)->cblist) && !rcu_segcblist_is_offloaded (&this_cpu_ptr (&rcu_data)->cblist);
@@ -1350,6 +1355,12 @@ int rcu_needs_cpu(u64 basemono, u64 *nextevt)lockdep_assert_irqs_disabled (); +/* Through early_initcall(), need tick for softirq handlers. */ +if (!IS_ENABLED (CONFIG_HZ_PERIODIC ) && !this_cpu_ksoftirqd ()) { + *nextevt =1 ; +return 1 ; + } +/* If no non-offloaded callbacks, RCU doesn't need the CPU. */ if (rcu_segcblist_empty (&rdp->cblist) ||rcu_segcblist_is_offloaded (&this_cpu_ptr (&rcu_data)->cblist)) {
Signature · 1 line
2.9.5
Frederic Weisbecker
maintainerRe: [PATCH tip/core/rcu 07/10] rcu: Prevent dyntick-idle until ksoftirqd has been spawned
Quoted 40 lines · On Wed, Mar 03, 2021 at 04:00:16PM -0800, [email protected] wrote:
From: "Paul E. McKenney" <[email protected]>
After interrupts have enabled at boot but before some random point in
early_initcall()processing, softirq processing is unreliable. If softirq sees a need to push softirq-handler invocation to ksoftirqd during this time, then those handlers can be delayed until the ksoftirqd kthreads have been spawned, which happens at some random point in theearly_initcall()processing. In many cases, this delay is just fine. However, if the boot sequence blocks waiting for a wakeup from a softirq handler, this delay will result in a silent-hang deadlock.This commit therefore prevents these hangs by ensuring that the tick stays active until after the ksoftirqd kthreads have been spawned. This change causes the tick to eventually drain the backlog of delayed softirq handlers, breaking this deadlock.
Signed-off-by Paul E. McKenney <[email protected]>--- kernel/rcu/tree_plugin.h | 11 +++++++++++ 1 file changed, 11 insertions(+)kernel/rcu/tree_plugin.h +5
-0@@ -1255,6 +1255,11 @@ static void rcu_prepare_kthreads(int cpu)*/ int rcu_needs_cpu (u64 basemono,u64 *nextevt) { +/* Through early_initcall(), need tick for softirq handlers. */ +if (!IS_ENABLED (CONFIG_HZ_PERIODIC ) && !this_cpu_ksoftirqd ()) { + *nextevt =1 ; +return 1 ; + } *nextevt =KTIME_MAX ;return !rcu_segcblist_empty (&this_cpu_ptr (&rcu_data)->cblist) && !rcu_segcblist_is_offloaded (&this_cpu_ptr (&rcu_data)->cblist);@@ -1350,6 +1355,12 @@ int rcu_needs_cpu(u64 basemono, u64 *nextevt)lockdep_assert_irqs_disabled ();
kernel/rcu/tree_plugin.h int rcu_needs_cpu(u64 basemono, u64 *nextevt) · line 1366
Quoted 10 lines
kernel/rcu/tree_plugin.h +6
-0+/* Through early_initcall(), need tick for softirq handlers. */ +if (!IS_ENABLED (CONFIG_HZ_PERIODIC ) && !this_cpu_ksoftirqd ()) { + *nextevt =1 ; +return 1 ; + } +/* If no non-offloaded callbacks, RCU doesn't need the CPU. */ if (rcu_segcblist_empty (&rdp->cblist) ||rcu_segcblist_is_offloaded (&this_cpu_ptr (&rcu_data)->cblist)) {
I suspect rcutiny should be concerned as well?
In fact this patch doesn't look necessary because can_stop_idle_tick() refuse to stop the tick when softirqs are pending.
Thanks.
Paul E. McKenney
maintainerRe: [PATCH tip/core/rcu 07/10] rcu: Prevent dyntick-idle until ksoftirqd has been spawned
Quoted 55 lines · Frederic Weisbecker
Quoted 40 lines · On Wed, Mar 03, 2021 at 04:00:16PM -0800, [email protected] wrote:
From: "Paul E. McKenney" <[email protected]>
After interrupts have enabled at boot but before some random point in
early_initcall()processing, softirq processing is unreliable. If softirq sees a need to push softirq-handler invocation to ksoftirqd during this time, then those handlers can be delayed until the ksoftirqd kthreads have been spawned, which happens at some random point in theearly_initcall()processing. In many cases, this delay is just fine. However, if the boot sequence blocks waiting for a wakeup from a softirq handler, this delay will result in a silent-hang deadlock.This commit therefore prevents these hangs by ensuring that the tick stays active until after the ksoftirqd kthreads have been spawned. This change causes the tick to eventually drain the backlog of delayed softirq handlers, breaking this deadlock.
Signed-off-by Paul E. McKenney <[email protected]>--- kernel/rcu/tree_plugin.h | 11 +++++++++++ 1 file changed, 11 insertions(+)kernel/rcu/tree_plugin.h +5
-0@@ -1255,6 +1255,11 @@ static void rcu_prepare_kthreads(int cpu)*/ int rcu_needs_cpu (u64 basemono,u64 *nextevt) { +/* Through early_initcall(), need tick for softirq handlers. */ +if (!IS_ENABLED (CONFIG_HZ_PERIODIC ) && !this_cpu_ksoftirqd ()) { + *nextevt =1 ; +return 1 ; + } *nextevt =KTIME_MAX ;return !rcu_segcblist_empty (&this_cpu_ptr (&rcu_data)->cblist) && !rcu_segcblist_is_offloaded (&this_cpu_ptr (&rcu_data)->cblist);@@ -1350,6 +1355,12 @@ int rcu_needs_cpu(u64 basemono, u64 *nextevt)lockdep_assert_irqs_disabled ();kernel/rcu/tree_plugin.h int rcu_needs_cpu(u64 basemono, u64 *nextevt) · line 1366
Quoted 10 lines
kernel/rcu/tree_plugin.h +6
-0+/* Through early_initcall(), need tick for softirq handlers. */ +if (!IS_ENABLED (CONFIG_HZ_PERIODIC ) && !this_cpu_ksoftirqd ()) { + *nextevt =1 ; +return 1 ; + } +/* If no non-offloaded callbacks, RCU doesn't need the CPU. */ if (rcu_segcblist_empty (&rdp->cblist) ||rcu_segcblist_is_offloaded (&this_cpu_ptr (&rcu_data)->cblist)) {I suspect rcutiny should be concerned as well?
Quoted 2 lines
In fact this patch doesn't look necessary because
can_stop_idle_tick()refuse to stop the tick when softirqs are pending.
So it does, thank you! I will drop this patch.
Thanx, Paul
[email protected]
maintainerPATCH 8/10 docs: Correctly spell Stephen Hemminger's name
In reply to Paul E. McKenneyFrom: "Paul E. McKenney" <[email protected]>
This commit replaces "Steve" with the his real name, which is "Stephen".
--- Documentation/RCU/RTFP.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/RCU/RTFP.txt +1 -1
@@ -847,7 +847,7 @@ Symposium on Distributed Computing} 'It's entirely possible that the current user could be replaced by RCU and/or seqlocks, and we could get rid of brlocks entirely.' . - Steve Hemminger responds by replacing them with RCU. + Stephen Hemminger responds by replacing them with RCU. } }
Signature · 1 line
2.9.5
[email protected]
maintainerPATCH 9/10 rcu: Add explicit barrier() to __rcu_read_unlock()
In reply to Paul E. McKenneyFrom: "Paul E. McKenney" <[email protected]>
Because preemptible RCU's __rcu_read_unlock() is an external function, the rough equivalent of an implicit barrier() is inserted by the compiler. Except that there is a direct call to __rcu_read_unlock() in that same file, and compilers are getting to the point where they might choose to inline the fastpath of the __rcu_read_unlock() function.
This commit therefore adds an explicit barrier() to the very beginning of __rcu_read_unlock().
--- kernel/rcu/tree_plugin.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
kernel/rcu/tree_plugin.h +2 -1
@@ -393,8 +393,9 @@ void __rcu_read_unlock(void) {struct task_struct *t = current; +barrier ();// critical section before exit code. if (rcu_preempt_read_exit () ==0 ) { -barrier ();/* critical section before exit code. */ +barrier ();// critical-section exit before .s check. if (unlikely (READ_ONCE (t->rcu_read_unlock_special.s)))rcu_read_unlock_special (t); }
Signature · 1 line
2.9.5
[email protected]
maintainerPATCH 10/10 rcu/tree: Add a trace event for RCU CPU stall warnings
In reply to Paul E. McKenneyFrom: Sangmoon Kim <[email protected]>
This commit adds a trace event which allows tracing the beginnings of RCU CPU stall warnings on systems where sysctl_panic_on_rcu_stall is disabled.
The first parameter is the name of RCU flavor like other trace events. The second parameter indicates whether this is a stall of an expedited grace period, a self-detected stall of a normal grace period, or a stall of a normal grace period detected by some CPU other than the one that is stalled.
RCU CPU stall warnings are often caused by external-to-RCU issues, for example, in interrupt handling or task scheduling. Therefore, this event uses TRACE_EVENT, not TRACE_EVENT_RCU, to avoid requiring those interested in tracing RCU CPU stalls to rebuild their kernels with CONFIG_RCU_TRACE=y.
--- include/trace/events/rcu.h | 28 ++++++++++++++++++++++++++++ kernel/rcu/tree_exp.h | 1 + kernel/rcu/tree_stall.h | 2 ++ 3 files changed, 31 insertions(+)
include/trace/events/rcu.h +28 -0
@@ -432,6 +432,34 @@ TRACE_EVENT_RCU(rcu_fqs, __entry->cpu, __entry->qsevent) ); +/* +* Tracepoint for RCU stall events. Takes a string identifying the RCU flavor +* and a string identifying which function detected the RCU stall as follows: +* +* "StallDetected": Scheduler-tick detects other CPU's stalls. +* "SelfDetected": Scheduler-tick detects a current CPU's stall. +* "ExpeditedStall": Expedited grace period detects stalls. +*/ +TRACE_EVENT (rcu_stall_warning, + + TP_PROTO(const char *rcuname, const char *msg), + +TP_ARGS (rcuname, msg), + +TP_STRUCT__entry ( + __field(const char *, rcuname) + __field(const char *, msg) + ), + +TP_fast_assign ( + __entry->rcuname = rcuname; + __entry->msg = msg; + ), + +TP_printk ("%s %s" , + __entry->rcuname, __entry->msg) +); +#endif /* #if defined(CONFIG_TREE_RCU) */ /*
kernel/rcu/tree_exp.h +1 -0
@@ -521,6 +521,7 @@ static void synchronize_rcu_expedited_wait(void)if (rcu_stall_is_suppressed ())continue ;panic_on_rcu_stall (); +trace_rcu_stall_warning (rcu_state.name,TPS ("ExpeditedStall" ));pr_err ("INFO: %s detected expedited stalls on CPUs/tasks: {" , rcu_state.name); ndetected =0 ;
kernel/rcu/tree_stall.h +2 -0
@@ -536,6 +536,7 @@ static void print_other_cpu_stall(unsigned long gp_seq, unsigned long gps)* See Documentation/RCU/stallwarn.rst for info on how to debug * RCU CPU stall warnings. */ +trace_rcu_stall_warning (rcu_state.name,TPS ("StallDetected" ));pr_err ("INFO: %s detected stalls on CPUs/tasks:\n" , rcu_state.name);rcu_for_each_leaf_node (rnp) {raw_spin_lock_irqsave_rcu_node (rnp, flags);
@@ -606,6 +607,7 @@ static void print_cpu_stall(unsigned long gps)* See Documentation/RCU/stallwarn.rst for info on how to debug * RCU CPU stall warnings. */ +trace_rcu_stall_warning (rcu_state.name,TPS ("SelfDetected" ));pr_err ("INFO: %s self-detected stall on CPU\n" , rcu_state.name);raw_spin_lock_irqsave_rcu_node (rdp->mynode, flags);print_cpu_stall_info (smp_processor_id ());
Signature · 1 line
2.9.5