fork, vhost: Use CLONE_THREAD to fix freezer/ps regression
[linux-2.6-block.git] / fs / coredump.c
index ece7badf701bc2f917796aa565b478b21c5ce104..88740c51b94202528243a6a0ed74335e09eee41e 100644 (file)
@@ -371,7 +371,9 @@ static int zap_process(struct task_struct *start, int exit_code)
                if (t != current && !(t->flags & PF_POSTCOREDUMP)) {
                        sigaddset(&t->pending.signal, SIGKILL);
                        signal_wake_up(t, 1);
-                       nr++;
+                       /* The vhost_worker does not particpate in coredumps */
+                       if ((t->flags & (PF_USER_WORKER | PF_IO_WORKER)) != PF_USER_WORKER)
+                               nr++;
                }
        }