[PATCH] sysrq-t broke and no one noticed

From: Jeff Dike
Date: Thu Oct 19 2006 - 13:09:37 EST


The meaning of state_filter == 0 got messed up somehow.

Signed-off-by: Jeff Dike <jdike@xxxxxxxxxxx>

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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/