public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PACTH v1] kernel/hung_task.c: Dump all UNINTERUPTIBLE tasks
@ 2016-08-02 15:23 robert.foss
  2016-08-04 13:22 ` Tetsuo Handa
  2016-08-10 22:43 ` Andrew Morton
  0 siblings, 2 replies; 6+ messages in thread
From: robert.foss @ 2016-08-02 15:23 UTC (permalink / raw)
  To: adurbin, penguin-kernel, robert.foss, akpm, linux-kernel

From: Aaron Durbin <adurbin@chromium.org>

When the panic path is taken for khungtaskd dump all
tasks with the UNINTERUPTIBLE state. That way, any
inter-dependent tasks that caused one another to hang
will be saved in the crash output.

Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: Robert Foss <robert.foss@collabora.com>
Signed-off-by: Robert Foss <robert.foss@collabora.com>
---
 kernel/hung_task.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/kernel/hung_task.c b/kernel/hung_task.c
index d234022..946caf9 100644
--- a/kernel/hung_task.c
+++ b/kernel/hung_task.c
@@ -122,6 +122,8 @@ static void check_hung_task(struct task_struct *t, unsigned long timeout)
 	touch_nmi_watchdog();
 
 	if (sysctl_hung_task_panic) {
+		/* Dump all tasks. */
+		show_state_filter(TASK_UNINTERRUPTIBLE);
 		trigger_all_cpu_backtrace();
 		panic("hung_task: blocked tasks");
 	}
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-08-29 19:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-02 15:23 [PACTH v1] kernel/hung_task.c: Dump all UNINTERUPTIBLE tasks robert.foss
2016-08-04 13:22 ` Tetsuo Handa
2016-08-04 15:29   ` Robert Foss
2016-08-10 22:43 ` Andrew Morton
2016-08-11 16:35   ` Robert Foss
2016-08-29 19:04     ` Robert Foss

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox