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.31-rc6~23^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00f89d218523b9bf6b522349c039d5ac80aa536d;p=pandora-kernel.git mm_for_maps: shift down_read(mmap_sem) to the caller 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 --- Reading git-diff-tree failed