LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] freezer: task->exit_state should be treated as bolean
@ 2007-02-16 22:31 Oleg Nesterov
  0 siblings, 0 replies; only message in thread
From: Oleg Nesterov @ 2007-02-16 22:31 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Rafael J. Wysocki, Ingo Molnar, linux-kernel

Except for BUG_ON() checks, we should not use EXIT_XXXX defines outside of
exit/wait paths.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>

--- 6.20-rc6-mm3/kernel/power/process.c~	2006-12-17 19:06:41.000000000 +0300
+++ 6.20-rc6-mm3/kernel/power/process.c	2007-02-17 01:27:54.000000000 +0300
@@ -25,10 +25,9 @@
 
 static inline int freezeable(struct task_struct * p)
 {
-	if ((p == current) || 
+	if ((p == current) ||
 	    (p->flags & PF_NOFREEZE) ||
-	    (p->exit_state == EXIT_ZOMBIE) ||
-	    (p->exit_state == EXIT_DEAD))
+	    (p->exit_state != 0))
 		return 0;
 	return 1;
 }


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

only message in thread, other threads:[~2007-02-16 22:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-16 22:31 [PATCH] freezer: task->exit_state should be treated as bolean Oleg Nesterov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).