We're going to use that in a bit. Rename it to something easier to understand. No functional changes. Signed-off-by: Christian Brauner (Amutable) --- fs/coredump.c | 4 ++-- include/linux/sched/signal.h | 3 ++- kernel/exit.c | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/fs/coredump.c b/fs/coredump.c index 9addd2d59b7b..545a6df48ea8 100644 --- a/fs/coredump.c +++ b/fs/coredump.c @@ -523,7 +523,7 @@ static int coredump_wait(int exit_code, struct core_state *core_state) struct task_struct *tsk = current; int core_waiters = -EBUSY; - init_completion(&core_state->startup); + init_completion(&core_state->done); core_state->dumper.task = tsk; core_state->dumper.next = NULL; @@ -531,7 +531,7 @@ static int coredump_wait(int exit_code, struct core_state *core_state) if (core_waiters > 0) { struct core_thread *ptr; - wait_for_completion_state(&core_state->startup, + wait_for_completion_state(&core_state->done, TASK_UNINTERRUPTIBLE|TASK_FREEZABLE); /* * Wait for all the threads to become inactive, so that diff --git a/include/linux/sched/signal.h b/include/linux/sched/signal.h index d45a5476b97d..1c1e280a25a1 100644 --- a/include/linux/sched/signal.h +++ b/include/linux/sched/signal.h @@ -81,7 +81,8 @@ struct core_thread { struct core_state { atomic_t nr_threads; struct core_thread dumper; - struct completion startup; + /* Completed by the last thread to park. */ + struct completion done; }; /* diff --git a/kernel/exit.c b/kernel/exit.c index 4e028f157597..affee30bcbca 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -443,7 +443,7 @@ static void coredump_task_exit(struct task_struct *tsk, * to core_state->dumper. */ if (atomic_dec_and_test(&core_state->nr_threads)) - complete(&core_state->startup); + complete(&core_state->done); for (;;) { set_current_state(TASK_IDLE|TASK_FREEZABLE); -- 2.53.0