Merge tag 'v3.10.79' into linux-linaro-lsk-v3.10
[firefly-linux-kernel-4.4.55.git] / mm / page_alloc.c
index 71305c6aba5bb49c8fa4b901181b2de28dfb02b4..494a081ec5e4c56dad62f3ca8d4646fd96043191 100644 (file)
@@ -2119,6 +2119,14 @@ __alloc_pages_may_oom(gfp_t gfp_mask, unsigned int order,
                return NULL;
        }
 
+       /*
+        * PM-freezer should be notified that there might be an OOM killer on
+        * its way to kill and wake somebody up. This is too early and we might
+        * end up not killing anything but false positives are acceptable.
+        * See freeze_processes.
+        */
+       note_oom_kill();
+
        /*
         * Go through the zonelist yet one more time, keep very high watermark
         * here, this is only to catch a parallel oom killing, we must fail if