diff options
author | Oleg Nesterov <[email protected]> | 2006-09-29 02:01:12 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2006-09-29 09:18:21 -0700 |
commit | 28324d1df646521256e83389244adcce98e89ff2 (patch) | |
tree | aaa81642185611b4996daeba7d65e6b3c3eb05a7 /net/lapb/lapb_subr.c | |
parent | c394cc9fbb367f87faa2228ec2eabacd2d4701c6 (diff) |
[PATCH] select_bad_process(): kill a bogus PF_DEAD/TASK_DEAD check
The only one usage of TASK_DEAD outside of last schedule path,
select_bad_process:
for_each_task(p) {
if (!p->mm)
continue;
...
if (p->state == TASK_DEAD)
continue;
...
TASK_DEAD state is set at the end of do_exit(), this means that p->mm
was already set == NULL by exit_mm(), so this task was already rejected
by 'if (!p->mm)' above.
Note also that the caller holds tasklist_lock, this means that p can't
pass exit_notify() and then set TASK_DEAD when p->mm != NULL.
Also, remove open-coded is_init().
Signed-off-by: Oleg Nesterov <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Nick Piggin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions