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-20110905~1^2~18 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=65a0601308b5cd5b26bab5b9d1429c2b99dab11e;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 e47a504c4008..7e38d84f5163 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -2001,7 +2001,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; }