]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: avoid memory allocation under m_peraglock in growfs code
authorChristoph Hellwig <hch@infradead.org>
Sat, 18 Jul 2009 22:14:53 +0000 (18:14 -0400)
committerFelix Blyakher <felixb@sgi.com>
Wed, 12 Aug 2009 06:06:51 +0000 (01:06 -0500)
commit3a0e8be74a2ecc245456ac46196ccb1e06f60832
tree488cbdb1fb8623285c4fb7c3a913516d7b7905d2
parentf6a75f40c9f711986e9af98550aca0ec1eb40033
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 <hch@lst.de>
Reviewed-by: Felix Blyakher <felixb@sgi.com>
Signed-off-by: Felix Blyakher <felixb@sgi.com>
fs/xfs/xfs_fsops.c