2006-10-19 17:08:52

by Jeff Dike

[permalink] [raw]
Subject: [PATCH] sysrq-t broke and no one noticed

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

Signed-off-by: Jeff Dike <[email protected]>

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);