ANDROID: binder: clarify deferred thread work.
[GitHub/LineageOS/android_kernel_samsung_universal7580.git] / mm / oom_kill.c
index f104c7e9f61efa4cfd61d4c6af544b1eabf2806b..4d87d7c4ed2e4e0d545f4db22146b6230440064e 100644 (file)
@@ -702,9 +702,12 @@ out:
  */
 void pagefault_out_of_memory(void)
 {
-       struct zonelist *zonelist = node_zonelist(first_online_node,
-                                                 GFP_KERNEL);
+       struct zonelist *zonelist;
 
+       if (mem_cgroup_oom_synchronize(true))
+               return;
+
+       zonelist = node_zonelist(first_online_node, GFP_KERNEL);
        if (try_set_zonelist_oom(zonelist, GFP_KERNEL)) {
                out_of_memory(NULL, 0, 0, NULL, false);
                clear_zonelist_oom(zonelist, GFP_KERNEL);