ceph: should use deactivate_locked_super() on failure exits
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 21 Mar 2010 23:22:29 +0000 (19:22 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 21 May 2010 22:31:13 +0000 (18:31 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ceph/super.c

index 110857ba9269c2862a1aebd5ac5763e848a27613..9307bbee6fbe2d3e7b7ad8e3fdb8b7ecfd2add21 100644 (file)
@@ -952,8 +952,7 @@ static int ceph_get_sb(struct file_system_type *fs_type,
 
 out_splat:
        ceph_mdsc_close_sessions(&client->mdsc);
-       up_write(&sb->s_umount);
-       deactivate_super(sb);
+       deactivate_locked_super(sb);
        goto out_final;
 
 out: