The patch titled Subject: coredump: cleanup the waiting for coredump_finish code has been added to the -mm tree. Its filename is coredump-cleanup-the-waiting-for-coredump_finish-code.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: cleanup the waiting for coredump_finish code Replace the for loop with a simple if. 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 | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff -puN kernel/exit.c~coredump-cleanup-the-waiting-for-coredump_finish-code kernel/exit.c --- a/kernel/exit.c~coredump-cleanup-the-waiting-for-coredump_finish-code +++ a/kernel/exit.c @@ -481,12 +481,9 @@ static void exit_mm(struct task_struct * if (atomic_dec_and_test(&core_state->nr_threads)) complete(&core_state->startup); - for (;;) { - set_task_state(tsk, TASK_UNINTERRUPTIBLE); - if (!self.task) /* see coredump_finish() */ - break; + set_task_state(tsk, TASK_UNINTERRUPTIBLE); + if (self.task) /* see coredump_finish() */ 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