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.31-rc6~10^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cc6eee130b0c062feec8446d9cecdb17d2cfad3;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