ocfs2: Fix possible deadlock in ocfs2_global_read_dquot()
authorJan Kara <jack@suse.cz>
Tue, 2 Jun 2009 12:23:59 +0000 (14:23 +0200)
committerJoel Becker <joel.becker@oracle.com>
Thu, 4 Jun 2009 02:14:28 +0000 (19:14 -0700)
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 <jack@suse.cz>
Signed-off-by: Joel Becker <joel.becker@oracle.com>

No differences found