From: Andrey Vagin Date: Tue, 22 Mar 2011 23:30:11 +0000 (-0700) Subject: oom: skip zombies when iterating tasklist X-Git-Tag: v2.6.37.6~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ab1c06f3217dbc4a13deac5e2f7379c91168107;p=pandora-kernel.git oom: skip zombies when iterating tasklist commit 30e2b41f20b6238f51e7cffb879c7a0f0073f5fe upstream. We shouldn't defer oom killing if a thread has already detached its ->mm and still has TIF_MEMDIE set. Memory needs to be freed, so find kill other threads that pin the same ->mm or find another task to kill. Signed-off-by: Andrey Vagin Signed-off-by: David Rientjes Cc: KOSAKI Motohiro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed