From: Oleg Nesterov Date: Fri, 10 Jul 2009 01:27:38 +0000 (+0200) Subject: mm_for_maps: shift down_read(mmap_sem) to the caller X-Git-Tag: v2.6.27.30~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60634e4b830850bb38016f1e6a7a7358eba8118c;p=pandora-kernel.git mm_for_maps: shift down_read(mmap_sem) to the caller commit 00f89d218523b9bf6b522349c039d5ac80aa536d upstream. mm_for_maps() takes ->mmap_sem after security checks, this looks strange and obfuscates the locking rules. Move this lock to its single caller, m_start(). Signed-off-by: Oleg Nesterov Acked-by: Serge Hallyn Signed-off-by: James Morris Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed