public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] check_hung_task(): unsigned sysctl_hung_task_warnings cannot be less than 0
@ 2008-12-02 21:55 Roel Kluin
  2008-12-03  9:12 ` Ingo Molnar
  0 siblings, 1 reply; 2+ messages in thread
From: Roel Kluin @ 2008-12-02 21:55 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: lkml

unsigned sysctl_hung_task_warnings cannot be less than 0

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
in kernel/softlockup.c

unsigned long __read_mostly sysctl_hung_task_warnings = 10;
...
static void check_hung_task()
{
...
        if (sysctl_hung_task_warnings < 0)
		return
        sysctl_hung_task_warnings--;

diff --git a/kernel/softlockup.c b/kernel/softlockup.c
index 3953e4a..a50a5db 100644
--- a/kernel/softlockup.c
+++ b/kernel/softlockup.c
@@ -188,7 +188,7 @@ static void check_hung_task(struct task_struct *t, unsigned long now)
 	if ((long)(now - t->last_switch_timestamp) <
 					sysctl_hung_task_timeout_secs)
 		return;
-	if (sysctl_hung_task_warnings < 0)
+	if (sysctl_hung_task_warnings == -1)
 		return;
 	sysctl_hung_task_warnings--;
 


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

end of thread, other threads:[~2008-12-03  9:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-02 21:55 [PATCH] check_hung_task(): unsigned sysctl_hung_task_warnings cannot be less than 0 Roel Kluin
2008-12-03  9:12 ` Ingo Molnar

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