mirror of https://gitee.com/openkylin/linux.git
ocfs2: fix exit-while-locked bug in ocfs2_queue_orphans()
We're holding the cluster lock when a failure might happen in ocfs2_dir_foreach() so it needs to be released. Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
This commit is contained in:
parent
ea9e7b5569
commit
a86370fbb6
|
@ -1277,11 +1277,12 @@ static int ocfs2_queue_orphans(struct ocfs2_super *osb,
|
||||||
ocfs2_orphan_filldir);
|
ocfs2_orphan_filldir);
|
||||||
if (status) {
|
if (status) {
|
||||||
mlog_errno(status);
|
mlog_errno(status);
|
||||||
goto out;
|
goto out_cluster;
|
||||||
}
|
}
|
||||||
|
|
||||||
*head = priv.head;
|
*head = priv.head;
|
||||||
|
|
||||||
|
out_cluster:
|
||||||
ocfs2_meta_unlock(orphan_dir_inode, 0);
|
ocfs2_meta_unlock(orphan_dir_inode, 0);
|
||||||
out:
|
out:
|
||||||
mutex_unlock(&orphan_dir_inode->i_mutex);
|
mutex_unlock(&orphan_dir_inode->i_mutex);
|
||||||
|
|
Loading…
Reference in New Issue