The patch titled Subject: coredump: use a freezable_schedule for the coredump_finish wait has been added to the -mm tree. Its filename is coredump-use-a-freezable_schedule-for-the-coredump_finish-wait.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Mandeep Singh Baines <msb@xxxxxxxxxxxx> Subject: coredump: use a freezable_schedule for the coredump_finish wait Prevents hung_task detector from panicing the machine. This is also needed to prevent this wait from blocking suspend. (It doesnt' currently block suspend but it would once the next patch in this series is applied.) Signed-off-by: Mandeep Singh Baines <msb@xxxxxxxxxxxx> Cc: Ben Chan <benchan@xxxxxxxxxxxx> Cc: Oleg Nesterov <oleg@xxxxxxxxxx> Cc: Tejun Heo <tj@xxxxxxxxxx> Cc: Rafael J. Wysocki <rjw@xxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/exit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -puN kernel/exit.c~coredump-use-a-freezable_schedule-for-the-coredump_finish-wait kernel/exit.c --- a/kernel/exit.c~coredump-use-a-freezable_schedule-for-the-coredump_finish-wait +++ a/kernel/exit.c @@ -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> @@ -483,7 +484,7 @@ static void exit_mm(struct task_struct * set_task_state(tsk, TASK_UNINTERRUPTIBLE); if (self.task) /* see coredump_finish() */ - schedule(); + freezable_schedule(); __set_task_state(tsk, TASK_RUNNING); down_read(&mm->mmap_sem); } _ Patches currently in -mm which might be from msb@xxxxxxxxxxxx are vfork-dont-freezer_count-for-in-kernel-users-of-clone_vfork.patch lockdep-check-that-no-locks-held-at-freeze-time.patch coredump-cleanup-the-waiting-for-coredump_finish-code.patch coredump-use-a-freezable_schedule-for-the-coredump_finish-wait.patch coredump-abort-core-dump-piping-only-due-to-a-fatal-signal.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html