summaryrefslogtreecommitdiff
path: root/kernel/exit.c
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2010-05-27 01:43:08 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-05-27 20:12:45 +0400
commit269b005a28e124a341df4adef2c3661cf7371fcc (patch)
tree226b105cc4c1bbe0b3fe92f2733708a7dc2dedb8 /kernel/exit.c
parent5e43aef530ba39206f7923295388f7ec3c5a7d93 (diff)
downloadlinux-269b005a28e124a341df4adef2c3661cf7371fcc.tar.xz
coredump: shift down_write(mmap_sem) into coredump_wait()
- move the cprm.mm_flags checks up, before we take mmap_sem - move down_write(mmap_sem) and ->core_state check from do_coredump() to coredump_wait() This simplifies the code and makes the locking symmetrical. Signed-off-by: Oleg Nesterov <oleg@redhat.com> Cc: David Howells <dhowells@redhat.com> Cc: Neil Horman <nhorman@tuxdriver.com> Cc: Roland McGrath <roland@redhat.com> Cc: Andi Kleen <andi@firstfloor.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/exit.c')
0 files changed, 0 insertions, 0 deletions