mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] sysrq-t broke and no one noticed
@ 2006-10-19 17:07 Jeff Dike
  0 siblings, 0 replies; only message in thread
From: Jeff Dike @ 2006-10-19 17:07 UTC (permalink / raw)
  To: torvalds, akpm; +Cc: linux-kernel

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

Signed-off-by: Jeff Dike <jdike@addtoit.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);
 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-10-19 17:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-19 17:07 [PATCH] sysrq-t broke and no one noticed Jeff Dike

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

all inboxes | Powered by JetHome®