aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@tv-sign.ru>2006-09-29 05:01:10 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-29 12:18:20 -0400
commit55a101f8f71a3d3dbda7b5c77083ffe47552f831 (patch)
tree52706df201efd82d09bed39562502b4caa357af4 /mm
parent29b884921634e1e01cbd276e1c9b8fc07a7e4a90 (diff)
[PATCH] kill PF_DEAD flag
After the previous change (->flags & PF_DEAD) <=> (->state == EXIT_DEAD), we don't need PF_DEAD any longer. Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/oom_kill.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/oom_kill.c b/mm/oom_kill.c
index f3dd79c1c367..202f186a753a 100644
--- a/mm/oom_kill.c
+++ b/mm/oom_kill.c
@@ -226,8 +226,8 @@ static struct task_struct *select_bad_process(unsigned long *ppoints)
226 releasing = test_tsk_thread_flag(p, TIF_MEMDIE) || 226 releasing = test_tsk_thread_flag(p, TIF_MEMDIE) ||
227 p->flags & PF_EXITING; 227 p->flags & PF_EXITING;
228 if (releasing) { 228 if (releasing) {
229 /* PF_DEAD tasks have already released their mm */ 229 /* TASK_DEAD tasks have already released their mm */
230 if (p->flags & PF_DEAD) 230 if (p->state == EXIT_DEAD)
231 continue; 231 continue;
232 if (p->flags & PF_EXITING && p == current) { 232 if (p->flags & PF_EXITING && p == current) {
233 chosen = p; 233 chosen = p;