]> git.baikalelectronics.ru Git - kernel.git/commit
Fix inequality comparison against "task->state"
authorLinus Torvalds <torvalds@g5.osdl.org>
Sat, 1 Oct 2005 18:04:18 +0000 (11:04 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 1 Oct 2005 18:04:18 +0000 (11:04 -0700)
commita892b4fd5571b225ac167da576aef6ef610279ac
tree4d9c164faaff5df25044b15afa235debc96091dc
parent8020ef488c011a11c81403aeb1d316c43953988d
Fix inequality comparison against "task->state"

We should always use bitmask ops, rather than depend on some ordering of
the different states.  With the TASK_NONINTERACTIVE flag, the inequality
doesn't really work.

Oleg Nesterov argues (likely correctly) that this test is unnecessary in
the first place.  However, the minimal fix for now is to at least make
it work in the presense of TASK_NONINTERACTIVE.  Waiting for consensus
from Roland & co on potential bigger cleanups.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/exit.c