Commit 6d450d12 authored by Linus Torvalds's avatar Linus Torvalds

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
parents e651e0a4 b8e75312
...@@ -428,7 +428,7 @@ static void coredump_task_exit(struct task_struct *tsk) ...@@ -428,7 +428,7 @@ static void coredump_task_exit(struct task_struct *tsk)
complete(&core_state->startup); complete(&core_state->startup);
for (;;) { for (;;) {
set_current_state(TASK_UNINTERRUPTIBLE|TASK_FREEZABLE); set_current_state(TASK_IDLE|TASK_FREEZABLE);
if (!self.task) /* see coredump_finish() */ if (!self.task) /* see coredump_finish() */
break; break;
schedule(); schedule();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment