sched/debug: Reset watchdog on all CPUs while processing sysrq-t
authorWei Li <liwei391@huawei.com>
Thu, 26 Dec 2019 08:52:24 +0000 (16:52 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 17 Jan 2020 09:19:20 +0000 (10:19 +0100)
commit02d4ac5885a18d326b500b94808f0956dcce2832
tree8bd9f9bb058155c1a9bb39a608dfcb8487432fa0
parentdcd6dffb0a75741471297724640733fa4e958d72
sched/debug: Reset watchdog on all CPUs while processing sysrq-t

Lengthy output of sysrq-t may take a lot of time on slow serial console
with lots of processes and CPUs.

So we need to reset NMI-watchdog to avoid spurious lockup messages, and
we also reset softlockup watchdogs on all other CPUs since another CPU
might be blocked waiting for us to process an IPI or stop_machine.

Add to sysrq_sched_debug_show() as what we did in show_state_filter().

Signed-off-by: Wei Li <liwei391@huawei.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Link: https://lkml.kernel.org/r/20191226085224.48942-1-liwei391@huawei.com
kernel/sched/debug.c