From: KAMEZAWA Hiroyuki Date: Wed, 2 Nov 2011 20:38:18 +0000 (-0700) Subject: memcg: fix oom schedule_timeout() X-Git-Tag: MMI-PSA29.97-13-9~18147^2~36 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=715a5ee82ab3c07430f748630044354132add5ad;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git memcg: fix oom schedule_timeout() Before calling schedule_timeout(), task state should be changed. Signed-off-by: KAMEZAWA Hiroyuki Acked-by: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 9e38abdbfd95..c02d87028b9f 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -1898,7 +1898,7 @@ bool mem_cgroup_handle_oom(struct mem_cgroup *memcg, gfp_t mask) if (test_thread_flag(TIF_MEMDIE) || fatal_signal_pending(current)) return false; /* Give chance to dying process */ - schedule_timeout(1); + schedule_timeout_uninterruptible(1); return true; }