Skip to content

Commit 5bd00f6

Browse files
imran-knpaulmckrcu
authored andcommitted
smp: Reduce logging due to dump_stack of CSD waiters
If a waiter is waiting for CSD lock, its call stack will not change between first and subsequent hang detection for the same CSD lock. Therefore, do dump_stack only for first-time detection for a given waiter. This avoids excessive logging on systems with hundreds of CPUs where repetitive dump_stack from hundreds of CPUs would otherwise flood the console. Signed-off-by: Imran Khan <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Juergen Gross <[email protected]> Cc: Valentin Schneider <[email protected]> Cc: Yury Norov <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent 06c2afb commit 5bd00f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kernel/smp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ static bool csd_lock_wait_toolong(struct __call_single_data *csd, u64 ts0, u64 *
259259
arch_send_call_function_single_ipi(cpu);
260260
}
261261
}
262-
dump_stack();
262+
if (firsttime)
263+
dump_stack();
263264
*ts1 = ts2;
264265

265266
return false;

0 commit comments

Comments
 (0)