hung_task: allow hung_task_panic when hung_task_warnings is 0
authorJohn Siddle <jsiddle@redhat.com>
Sat, 10 Sep 2016 10:36:36 +0000 (20:36 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 13 Sep 2016 03:57:02 +0000 (13:57 +1000)
commitb80c232a6e5195cbb6b8820f53be4c1ca0e86d6a
treee55e35e466336f8f6a5c089a961792327c20a9b8
parentc88e152f0cbc6f119a5d0f88592f5cbea50aaa6a
hung_task: allow hung_task_panic when hung_task_warnings is 0

Previously hung_task_panic would not be respected if enabled after
hung_task_warnings had already been decremented to 0.

Permit the kernel to panic if hung_task_panic is enabled after
hung_task_warnings has already been decremented to 0 and another task
hangs for hung_task_timeout_secs seconds.

Check if hung_task_panic is enabled so we don't return prematurely, and
check if hung_task_warnings is non-zero so we don't print the warning
unnecessarily.

Link: http://lkml.kernel.org/r/1473450214-4049-1-git-send-email-jsiddle@redhat.com
Signed-off-by: John Siddle <jsiddle@redhat.com>
Cc: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/hung_task.c
This page took 0.02358 seconds and 5 git commands to generate.