ocfs2: Fix possible deadlock in ocfs2_write_dquot()
authorJan Kara <jack@suse.cz>
Mon, 12 Jan 2009 22:20:32 +0000 (23:20 +0100)
committerMark Fasheh <mfasheh@suse.com>
Mon, 2 Feb 2009 22:20:17 +0000 (14:20 -0800)
It could happen that some limit has been set via quotactl() and in parallel
->mark_dirty() is called from another thread doing e.g. dquot_alloc_space(). In
such case ocfs2_write_dquot() must not try to sync the dquot because that needs
global quota lock but that ranks above transaction start.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>

No differences found