oom: thaw threads if oom killed thread is frozen before deferring
authorDavid Rientjes <[email protected]>
Tue, 1 Nov 2011 00:07:07 +0000 (17:07 -0700)
committerLinus Torvalds <[email protected]>
Tue, 1 Nov 2011 00:30:45 +0000 (17:30 -0700)
commitf660daac474c6f7c2d710100e29b3276a6f4db0a
treead142e254a7b804cb158f2c64e9e6a77e8e4388c
parentd08c429b06d21bd2add88aea2cd1996f1b9b3bda
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 <[email protected]>
Reported-by: Konstantin Khlebnikov <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: KOSAKI Motohiro <[email protected]>
Cc: KAMEZAWA Hiroyuki <[email protected]>
Cc: "Rafael J. Wysocki" <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/oom_kill.c