Browse Source

ceph: add missing spin_unlock at ceph_mdsc_build_path()

one of the paths was missing spin_unlock

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Yehuda Sadeh 13 years ago
parent
commit
9d5a09e659
1 changed files with 1 additions and 0 deletions
  1. 1 0
      fs/ceph/mds_client.c

+ 1 - 0
fs/ceph/mds_client.c

@@ -1495,6 +1495,7 @@ retry:
 			     pos, temp);
 			     pos, temp);
 		} else if (stop_on_nosnap && inode &&
 		} else if (stop_on_nosnap && inode &&
 			   ceph_snap(inode) == CEPH_NOSNAP) {
 			   ceph_snap(inode) == CEPH_NOSNAP) {
+			spin_unlock(&temp->d_lock);
 			break;
 			break;
 		} else {
 		} else {
 			pos -= temp->d_name.len;
 			pos -= temp->d_name.len;