From: Jan Kara Date: Tue, 2 Jun 2009 12:23:59 +0000 (+0200) Subject: ocfs2: Fix possible deadlock in ocfs2_global_read_dquot() X-Git-Tag: v2.6.31-rc1~307^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e8a301929bfa017e6ffe11e3cf78ccaf8492801;p=pandora-kernel.git ocfs2: Fix possible deadlock in ocfs2_global_read_dquot() It is not possible to get a read lock and then try to get the same write lock in one thread as that can block on downconvert being requested by other node leading to deadlock. So first drop the quota lock for reading and only after that get it for writing. Signed-off-by: Jan Kara Signed-off-by: Joel Becker --- Reading git-diff-tree failed