[PATCH] oom_kill_task(): cleanup ->mm checks
authorOleg Nesterov <oleg@tv-sign.ru>
Fri, 29 Sep 2006 09:01:13 +0000 (02:01 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 29 Sep 2006 16:18:21 +0000 (09:18 -0700)
commit01017a227044d64face2588fab9427a1da1bdb9f
treeb1f369a8d20aff94447ac6acd18bbb23d268b443
parent972c4ea59c9dbf82647ee9665d9e945241911a51
[PATCH] oom_kill_task(): cleanup ->mm checks

- It is not possible to have task->mm == &init_mm.

- task_lock() buys nothing for 'if (!p->mm)' check.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/oom_kill.c