Skip to content

Commit 9d5a09e

Browse files
Yehuda Sadehliewegas
authored andcommitted
ceph: add missing spin_unlock at ceph_mdsc_build_path()
one of the paths was missing spin_unlock Signed-off-by: Yehuda Sadeh <[email protected]>
1 parent 6a82c47 commit 9d5a09e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/ceph/mds_client.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1495,6 +1495,7 @@ char *ceph_mdsc_build_path(struct dentry *dentry, int *plen, u64 *base,
14951495
pos, temp);
14961496
} else if (stop_on_nosnap && inode &&
14971497
ceph_snap(inode) == CEPH_NOSNAP) {
1498+
spin_unlock(&temp->d_lock);
14981499
break;
14991500
} else {
15001501
pos -= temp->d_name.len;

0 commit comments

Comments
 (0)