diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-01 11:04:18 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-01 11:04:18 -0700 |
commit | 14bf01bb0599c89fc7f426d20353b76e12555308 (patch) | |
tree | 4d9c164faaff5df25044b15afa235debc96091dc /drivers | |
parent | fd2e54b35bd70d11c160ded4834e2378e915356e (diff) | |
download | linux-3.10-14bf01bb0599c89fc7f426d20353b76e12555308.tar.gz linux-3.10-14bf01bb0599c89fc7f426d20353b76e12555308.tar.bz2 linux-3.10-14bf01bb0599c89fc7f426d20353b76e12555308.zip |
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>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions