diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 04c9143a86255a..9c643a3c7451f4 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -1068,6 +1068,9 @@ void pagefault_out_of_memory(void) if (mem_cgroup_oom_synchronize(true)) return; + if (tsk_is_oom_victim(current)) + return; + if (!mutex_trylock(&oom_lock)) return; out_of_memory(&oc);