smp: Reduce logging due to dump_stack of CSD waiters
authorImran Khan <imran.f.khan@oracle.com>
Mon, 8 May 2023 22:31:23 +0000 (08:31 +1000)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 10 Jul 2023 21:19:04 +0000 (14:19 -0700)
commit5bd00f6db012f75b42434d39b7fec98b95c1afcc
treef538ea2bf968a283895aaffd3eab88b0ef3f0dd1
parent06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5
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 <imran.f.khan@oracle.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Juergen Gross <jgross@suse.com>
Cc: Valentin Schneider <vschneid@redhat.com>
Cc: Yury Norov <yury.norov@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/smp.c