]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: fix mount failure unwinding
authorSage Weil <sage@newdream.net>
Fri, 6 Jun 2008 17:08:57 +0000 (10:08 -0700)
committerSage Weil <sage@newdream.net>
Fri, 6 Jun 2008 17:08:57 +0000 (10:08 -0700)
src/kernel/super.c

index 25e21915443347d1f37c51f49f528e5d2b650928..17646b0945e9e45aa8783c47a90a30169da0d05a 100644 (file)
@@ -692,7 +692,7 @@ int ceph_mount(struct ceph_client *client, struct vfsmount *mnt)
        struct ceph_msg *mount_msg;
        struct dentry *root;
        int err;
-       int attempts = 10;
+       int attempts = 2;//10;
        int which;
        char r;
 
@@ -939,8 +939,10 @@ static int ceph_get_sb(struct file_system_type *fs_type,
 out_splat:
        up_write(&sb->s_umount);
        deactivate_super(sb);
+       goto out_final;
 out:
        ceph_destroy_client(client);
+out_final:
        dout(25, "ceph_get_sb fail %d\n", err);
        return err;
 }