[RFC] [PATCH] On cifs mount failure getting root inode - need to disconnect share and server session

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When cifs mount succeeds in connecting to the server, but fails to get
the root inode, although it returns an error to mount, it does not
free the tree connection.   This patch fixes that (I noticed this in
testing IPC$ support, ie network named pipe support - since
QueryPathInfo on a pipe over cifs returns an error).

diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index e8da4ee..e83bbd9 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -174,6 +174,7 @@ out_no_root:
        cERROR(1, ("cifs_read_super: get root inode failed"));
        if (inode)
                iput(inode);
+       cifs_umount(sb, cifs_sb);

 out_mount_failed:
        if (cifs_sb) {


-- 
Thanks,

Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux