[<prev] [next>] [day] [month] [year] [list]
Message-Id: <200610191707.k9JH7H3P005584@ccure.user-mode-linux.org>
Date: Thu, 19 Oct 2006 13:07:17 -0400
From: Jeff Dike <jdike@...toit.com>
To: torvalds@...l.org, akpm@...l.org
cc: linux-kernel@...r.kernel.org
Subject: [PATCH] sysrq-t broke and no one noticed
The meaning of state_filter == 0 got messed up somehow.
Signed-off-by: Jeff Dike <jdike@...toit.com>
Index: linux-2.6.17/kernel/sched.c
===================================================================
--- linux-2.6.17.orig/kernel/sched.c
+++ linux-2.6.17/kernel/sched.c
@@ -4825,7 +4825,7 @@ void show_state_filter(unsigned long sta
* console might take alot of time:
*/
touch_nmi_watchdog();
- if (state_filter && (p->state & state_filter))
+ if (!state_filter || (p->state & state_filter))
show_task(p);
} while_each_thread(g, p);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists