aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2010-05-26 21:43:08 +0000
committerLinus Torvalds <[email protected]>2010-05-27 16:12:45 +0000
commit269b005a28e124a341df4adef2c3661cf7371fcc (patch)
tree226b105cc4c1bbe0b3fe92f2733708a7dc2dedb8 /fs/proc/array.c
parentcoredump: factor out put_cred() calls (diff)
downloadkernel-269b005a28e124a341df4adef2c3661cf7371fcc.tar.gz
kernel-269b005a28e124a341df4adef2c3661cf7371fcc.zip
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 <[email protected]> Cc: David Howells <[email protected]> Cc: Neil Horman <[email protected]> Cc: Roland McGrath <[email protected]> Cc: Andi Kleen <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions