From: Christoph Hellwig Date: Sat, 18 Jul 2009 22:14:53 +0000 (-0400) Subject: xfs: avoid memory allocation under m_peraglock in growfs code X-Git-Tag: v2.6.32-rc1~661^2^2~17^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efe1f30e8f05a3836dfcf6302774707b3b47193f;p=pandora-kernel.git xfs: avoid memory allocation under m_peraglock in growfs code Allocate the memory for the larger m_perag array before taking the per-AG lock as the per-AG lock can be taken under the i_lock which can be taken from reclaim context. Reported by the new reclaim context tracing in lockdep. Signed-off-by: Christoph Hellwig Reviewed-by: Felix Blyakher Signed-off-by: Felix Blyakher --- Reading git-diff-tree failed