From: David Rientjes Date: Wed, 12 Dec 2012 21:52:07 +0000 (-0800) Subject: mm, oom: remove redundant sleep in pagefault oom handler X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0fa84a4bfa2aac8c04d45351b40765d61e1fd20d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mm, oom: remove redundant sleep in pagefault oom handler out_of_memory() will already cause current to schedule if it has not been killed, so doing it again in pagefault_out_of_memory() is redundant. Remove it. Signed-off-by: David Rientjes Acked-by: KAMEZAWA Hiroyuki Cc: KOSAKI Motohiro Reviewed-by: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 0e30ff7b21c5..0399f146ae49 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -683,5 +683,4 @@ void pagefault_out_of_memory(void) out_of_memory(NULL, 0, 0, NULL, false); clear_zonelist_oom(zonelist, GFP_KERNEL); } - schedule_timeout_killable(1); }