From: Christoph Hellwig Date: Tue, 25 Jan 2011 09:06:19 +0000 (+0000) Subject: xfs: only lock the rt bitmap inode once per allocation X-Git-Tag: v2.6.39-rc1~394^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04e99455ea5bb17ea7c2e7bb0970168efb736242;p=pandora-kernel.git xfs: only lock the rt bitmap inode once per allocation Currently both xfs_rtpick_extent and xfs_rtallocate_extent call xfs_trans_iget to grab and lock the rt bitmap inode, which results in a deadlock since the removal of the lock recursion counters in commit "xfs: simplify inode to transaction joining" Fix this by acquiring and locking the inode in xfs_bmap_rtalloc before calling into xfs_rtpick_extent and xfs_rtallocate_extent. Signed-off-by: Christoph Hellwig Signed-off-by: Alex Elder --- Reading git-diff-tree failed