Skip to contentSkip to conversation

sysrq-t broke and no one noticed

PATCH New Jeff Dike 1 participant 1 message Oct 19, 2006

lore
Share & tools
lore

Jeff Dike

author
#0 lore raw

PATCH 1/1 sysrq-t broke and no one noticed

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

kernel/sched.c +1 -1
Index: 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);