]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
oom: kill all threads that share mm with killed task
authorDavid Rientjes <rientjes@google.com>
Tue, 24 Apr 2007 04:36:13 +0000 (21:36 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 24 Apr 2007 15:11:49 +0000 (08:11 -0700)
commit650a7c974f1b91de9732c0f720e792837f8abfd6
treec1f3b166e7128a4b0c35a4f900ad5cd6c959b4a2
parentc445a31cd7f469d77acc37538ab43a99530968b8
oom: kill all threads that share mm with killed task

oom_kill_task() calls __oom_kill_task() to OOM kill a selected task.
When finding other threads that share an mm with that task, we need to
kill those individual threads and not the same one.

(Bug introduced by f2a2a7108aa0039ba7a5fe7a0d2ecef2219a7584)

Acked-by: William Irwin <bill.irwin@oracle.com>
Acked-by: Christoph Lameter <clameter@engr.sgi.com>
Cc: Nick Piggin <npiggin@suse.de>
Cc: Andrew Morton <akpm@osdl.org>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/oom_kill.c