From: KAMEZAWA Hiroyuki Date: Wed, 24 Aug 2011 23:47:40 +0000 (+1000) Subject: Before calling schedule_timeout(), task state should be changed. X-Git-Tag: next-20110927~1^2~17 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7ed0a32bb11dba1eb5647e6203caf28990c290a3;p=karo-tx-linux.git 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 0360067dabbb..0f676a55bfe1 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; }