From: KAMEZAWA Hiroyuki Date: Wed, 5 Oct 2011 00:43:49 +0000 (+1100) Subject: memcg: fix oom schedule_timeout() X-Git-Tag: next-20111013~1^2~53 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5603979f9c4d8b6c01616d3478778f4f96af5150;p=karo-tx-linux.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 --- diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 04bbe171f2a0..613f723ab384 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -1899,7 +1899,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; }