]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - mm/oom_kill.c
[PATCH] oom: less memdie
[linux-2.6-omap-h63xx.git] / mm / oom_kill.c
index a6879f22eb3026c34298a12fbcd9832ea09ecc4c..223d9ccb7d64b6b28f5642ba3ab12629a170419a 100644 (file)
@@ -323,11 +323,12 @@ static int oom_kill_task(struct task_struct *p)
 
        /*
         * kill all processes that share the ->mm (i.e. all threads),
-        * but are in a different thread group.
+        * but are in a different thread group. Don't let them have access
+        * to memory reserves though, otherwise we might deplete all memory.
         */
        do_each_thread(g, q) {
                if (q->mm == mm && q->tgid != p->tgid)
-                       __oom_kill_task(q, 1);
+                       force_sig(SIGKILL, p);
        } while_each_thread(g, q);
 
        return 0;