ocfs2: Fix lock inversion in quotas during umount
authorJan Kara <jack@suse.cz>
Thu, 13 May 2010 20:14:53 +0000 (22:14 +0200)
committerJan Kara <jack@suse.cz>
Fri, 21 May 2010 17:30:48 +0000 (19:30 +0200)
commitc06bcbfa1ed8daaeb2a262f372b411207891e229
treedb734e409643108ea4b5df28bf18bcfac654eaca
parent52a9ee281cfb26fffce1d6c409fb4b1f4aa8a766
ocfs2: Fix lock inversion in quotas during umount

We cannot cancel delayed work from ocfs2_local_free_info because that is called
with dqonoff_mutex held and the work it cancels requires dqonoff_mutex to
finish. Cancel the work before acquiring dqonoff_mutex.

Acked-by: Joel Becker <Joel.Becker@oracle.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ocfs2/quota_local.c
fs/ocfs2/super.c