coredump: turn core_state->nr_threads into atomic_t

Turn core_state->nr_threads into atomic_t and kill now unneeded
down_write(&mm->mmap_sem) in exit_mm().

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>
This commit is contained in:
Oleg Nesterov
2008-07-25 01:47:42 -07:00
committed by Linus Torvalds
parent 8cd9c24912
commit c5f1cc8c18
3 changed files with 4 additions and 5 deletions

View File

@@ -160,7 +160,7 @@ struct vm_area_struct {
};
struct core_state {
int nr_threads;
atomic_t nr_threads;
struct completion startup;
};