mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] khungtaskd: Kick stuck processes
@ 2018-02-08 19:07 Chris Wilson
  2018-02-08 23:10 ` Tetsuo Handa
  2018-02-13 11:56 ` Michal Hocko
  0 siblings, 2 replies; 6+ messages in thread
From: Chris Wilson @ 2018-02-08 19:07 UTC (permalink / raw)
  To: linux-kernel; +Cc: Chris Wilson, Ingo Molnar, Tetsuo Handa, Andrew Morton

After spotting a stuck process, and having decided not to panic, give
the task a kick to see if that helps it to recover (e.g. to paper over a
missed wake up).

References: https://bugs.freedesktop.org/show_bug.cgi?id=104009
References: https://bugs.freedesktop.org/show_bug.cgi?id=104682
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Andrew Morton <akpm@linux-foundation.org>
---
 kernel/hung_task.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/kernel/hung_task.c b/kernel/hung_task.c
index 751593ed7c0b..b32acb6bcc63 100644
--- a/kernel/hung_task.c
+++ b/kernel/hung_task.c
@@ -132,6 +132,8 @@ static void check_hung_task(struct task_struct *t, unsigned long timeout)
 		trigger_all_cpu_backtrace();
 		panic("hung_task: blocked tasks");
 	}
+
+	wake_up_process(t);
 }
 
 /*
-- 
2.16.1

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

end of thread, other threads:[~2018-02-13 12:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-08 19:07 [PATCH] khungtaskd: Kick stuck processes Chris Wilson
2018-02-08 23:10 ` Tetsuo Handa
2018-02-08 23:15   ` Chris Wilson
2018-02-09 11:30     ` Tetsuo Handa
2018-02-13 11:56 ` Michal Hocko
     [not found]   ` <151852369261.8633.4809735220536862770@mail.alporthouse.com>
2018-02-13 12:29     ` Michal Hocko

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

all inboxes | Powered by JetHome®