Skip to content

Commit 6d450d1

Browse files
committed
Merge tag 'misc.2024.09.14a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu
Pull core dump update from Paul McKenney: "Sleep at TASK_IDLE when waiting for application core dump This causes the coredump_task_exit() function to sleep at TASK_IDLE, thus preventing task-blocked splats in case of large core dumps to slow devices" * tag 'misc.2024.09.14a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu: exit: Sleep at TASK_IDLE when waiting for application core dump
2 parents e651e0a + b8e7531 commit 6d450d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/exit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ static void coredump_task_exit(struct task_struct *tsk)
428428
complete(&core_state->startup);
429429

430430
for (;;) {
431-
set_current_state(TASK_UNINTERRUPTIBLE|TASK_FREEZABLE);
431+
set_current_state(TASK_IDLE|TASK_FREEZABLE);
432432
if (!self.task) /* see coredump_finish() */
433433
break;
434434
schedule();

0 commit comments

Comments
 (0)