diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2008-07-25 04:47:42 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-25 13:53:39 -0400 |
commit | c5f1cc8c1828486a61ab3e575da6e2c62b34d399 (patch) | |
tree | 9cc88e7d1dae063482e1e9117ded747578cbd7ad /fs | |
parent | 8cd9c249128a59e8e833d454a784b0cbd338d468 (diff) |
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')
-rw-r--r-- | fs/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1591,7 +1591,7 @@ static inline int zap_threads(struct task_struct *tsk, struct mm_struct *mm, | |||
1591 | } | 1591 | } |
1592 | rcu_read_unlock(); | 1592 | rcu_read_unlock(); |
1593 | done: | 1593 | done: |
1594 | core_state->nr_threads = nr; | 1594 | atomic_set(&core_state->nr_threads, nr); |
1595 | return nr; | 1595 | return nr; |
1596 | } | 1596 | } |
1597 | 1597 | ||