|
@@ -20,6 +20,7 @@
|
|
|
#include <linux/tsacct_kern.h>
|
|
|
#include <linux/file.h>
|
|
|
#include <linux/fdtable.h>
|
|
|
+#include <linux/freezer.h>
|
|
|
#include <linux/binfmts.h>
|
|
|
#include <linux/nsproxy.h>
|
|
|
#include <linux/pid_namespace.h>
|
|
@@ -31,7 +32,6 @@
|
|
|
#include <linux/mempolicy.h>
|
|
|
#include <linux/taskstats_kern.h>
|
|
|
#include <linux/delayacct.h>
|
|
|
-#include <linux/freezer.h>
|
|
|
#include <linux/cgroup.h>
|
|
|
#include <linux/syscalls.h>
|
|
|
#include <linux/signal.h>
|
|
@@ -485,7 +485,7 @@ static void exit_mm(struct task_struct * tsk)
|
|
|
set_task_state(tsk, TASK_UNINTERRUPTIBLE);
|
|
|
if (!self.task) /* see coredump_finish() */
|
|
|
break;
|
|
|
- schedule();
|
|
|
+ freezable_schedule();
|
|
|
}
|
|
|
__set_task_state(tsk, TASK_RUNNING);
|
|
|
down_read(&mm->mmap_sem);
|