]> git.karo-electronics.de Git - karo-tx-linux.git/commit
oom: thaw threads if oom killed thread is frozen before deferring
authorDavid Rientjes <rientjes@google.com>
Mon, 24 Oct 2011 14:54:32 +0000 (01:54 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 25 Oct 2011 09:07:52 +0000 (20:07 +1100)
commitc4d8115b99749e15e8a07e4ac3b983c876f59064
treecb28a671e0c3f906ad21f464c6fb4f221c378618
parent0cdbe283300c360ef9645b366b2de121e8bad137
oom: thaw threads if oom killed thread is frozen before deferring

If a thread has been oom killed and is frozen, thaw it before returning to
the page allocator.  Otherwise, it can stay frozen indefinitely and no
memory will be freed.

Signed-off-by: David Rientjes <rientjes@google.com>
Reported-by: Michal Hocko <mhocko@suse.cz>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/oom_kill.c