ocfs2: Push out dropping of dentry lock to ocfs2_wq
Dropping of last reference to dentry lock is a complicated operation involving dropping of reference to inode. This can get complicated and quota code in particular needs to obtain some quota locks which leads to potential deadlock. Thus we defer dropping of inode reference to ocfs2_wq. Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Mark Fasheh <mfasheh@suse.com>
This commit is contained in:
@@ -1887,6 +1887,9 @@ static int ocfs2_initialize_super(struct super_block *sb,
|
||||
INIT_WORK(&journal->j_recovery_work, ocfs2_complete_recovery);
|
||||
journal->j_state = OCFS2_JOURNAL_FREE;
|
||||
|
||||
INIT_WORK(&osb->dentry_lock_work, ocfs2_drop_dl_inodes);
|
||||
osb->dentry_lock_list = NULL;
|
||||
|
||||
/* get some pseudo constants for clustersize bits */
|
||||
osb->s_clustersize_bits =
|
||||
le32_to_cpu(di->id2.i_super.s_clustersize_bits);
|
||||
|
Reference in New Issue
Block a user