]> Pileus Git - ~andy/linux/commitdiff
ceph: add missing spin_unlock at ceph_mdsc_build_path()
authorYehuda Sadeh <yehuda@hq.newdream.net>
Tue, 13 Dec 2011 17:57:44 +0000 (09:57 -0800)
committerSage Weil <sage@newdream.net>
Tue, 13 Dec 2011 19:59:53 +0000 (11:59 -0800)
one of the paths was missing spin_unlock

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
fs/ceph/mds_client.c

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