From: Jan Kara Date: Thu, 6 Aug 2009 21:29:34 +0000 (+0200) Subject: ocfs2: Fix possible deadlock when extending quota file X-Git-Tag: v2.6.31-rc6~5^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b409d7a0ab46fe530efe52734984b4ed5d46c3eb;p=pandora-kernel.git ocfs2: Fix possible deadlock when extending quota file In OCFS2, allocator locks rank above transaction start. Thus we cannot extend quota file from inside a transaction less we could deadlock. We solve the problem by starting transaction not already in ocfs2_acquire_dquot() but only in ocfs2_local_read_dquot() and ocfs2_global_read_dquot() and we allocate blocks to quota files before starting the transaction. In case we crash, quota files will just have a few blocks more but that's no problem since we just use them next time we extend the quota file. Signed-off-by: Jan Kara Signed-off-by: Joel Becker --- Reading git-diff-tree failed