summaryrefslogtreecommitdiff
path: root/fs/exec.c
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@tv-sign.ru>2008-07-25 08:47:42 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-25 17:53:39 (GMT)
commitc5f1cc8c1828486a61ab3e575da6e2c62b34d399 (patch)
tree9cc88e7d1dae063482e1e9117ded747578cbd7ad /fs/exec.c
parent8cd9c249128a59e8e833d454a784b0cbd338d468 (diff)
downloadlinux-c5f1cc8c1828486a61ab3e575da6e2c62b34d399.tar.xz
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>
Diffstat (limited to 'fs/exec.c')
-rw-r--r--fs/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/exec.c b/fs/exec.c
index c74bb34..15d493f 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -1591,7 +1591,7 @@ static inline int zap_threads(struct task_struct *tsk, struct mm_struct *mm,
}
rcu_read_unlock();
done:
- core_state->nr_threads = nr;
+ atomic_set(&core_state->nr_threads, nr);
return nr;
}