From: Oleg Nesterov Date: Wed, 26 May 2010 21:43:08 +0000 (-0700) Subject: coredump: shift down_write(mmap_sem) into coredump_wait() X-Git-Tag: v2.6.35-rc1~172 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=269b005a28e124a341df4adef2c3661cf7371fcc;p=pandora-kernel.git 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 Cc: David Howells Cc: Neil Horman Cc: Roland McGrath Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed