From 5603979f9c4d8b6c01616d3478778f4f96af5150 Mon Sep 17 00:00:00 2001 From: KAMEZAWA Hiroyuki Date: Wed, 5 Oct 2011 11:43:49 +1100 Subject: [PATCH] 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 --- mm/memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5