[PATCH 38/65] khungtaskd: Kick stuck processes

Chris Wilson chris at chris-wilson.co.uk
Tue Jan 23 12:01:26 UTC 2018

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 at chris-wilson.co.uk>
Suggest-Cc: Ingo Molnar <mingo at kernel.org>
Suggest-Cc: Tetsuo Handa <penguin-kernel at I-love.SAKURA.ne.jp>
Suggest-Cc: Andrew Morton <akpm at 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)
 		panic("hung_task: blocked tasks");
+	wake_up_process(t);

More information about the Intel-gfx-trybot mailing list