diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2008-07-25 01:47:41 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-25 10:53:39 -0700 |
commit | 32ecb1f26dd50eeaac4e3f4dea4541c97848e459 (patch) | |
tree | 4c2f3b6af9ff6babf2f395432de8e870508f2ec3 /kernel/exit.c | |
parent | 24d5288f06ed8b3a368eba967d587cdb012dfdf7 (diff) | |
download | linux-32ecb1f26dd50eeaac4e3f4dea4541c97848e459.tar.gz linux-32ecb1f26dd50eeaac4e3f4dea4541c97848e459.tar.bz2 linux-32ecb1f26dd50eeaac4e3f4dea4541c97848e459.zip |
coredump: turn mm->core_startup_done into the pointer to struct core_state
mm->core_startup_done points to "struct completion startup_done" allocated
on the coredump_wait()'s stack. Introduce the new structure, core_state,
which holds this "struct completion". This way we can add more info
visible to the threads participating in coredump without enlarging
mm_struct.
No changes in affected .o files.
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index 28a44a2612dc..f7fa21dbced4 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -680,7 +680,7 @@ static void exit_mm(struct task_struct * tsk) up_read(&mm->mmap_sem); down_write(&mm->mmap_sem); if (!--mm->core_waiters) - complete(mm->core_startup_done); + complete(&mm->core_state->startup); up_write(&mm->mmap_sem); wait_for_completion(&mm->core_done); |