]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - mm/oom_kill.c
ixgbe: add support for 82599 KR device 0x1517
[karo-tx-linux.git] / mm / oom_kill.c
index 9092b43f07fa01cda075b005fb66cd482eb90ecf..83cd9bb55092afd3bd18bdc2e1cce7888aa8c7a2 100644 (file)
@@ -426,6 +426,8 @@ static int oom_kill_process(struct task_struct *p, gfp_t gfp_mask, int order,
        list_for_each_entry(c, &p->children, sibling) {
                if (c->mm == p->mm)
                        continue;
+               if (mem && !task_in_mem_cgroup(c, mem))
+                       continue;
                if (!oom_kill_task(c))
                        return 0;
        }