aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorPaulo Alcantara <pc@cjr.nz>2021-07-15 21:53:53 -0300
committerSteve French <stfrench@microsoft.com>2021-07-16 00:21:47 -0500
commitcdc3363065aba2711e51019b3d5787f044f8a133 (patch)
tree5aa0e09bbcf46a06a9270f21ca2aa760a6b9fa5a /fs/cifs/cifsglob.h
parentSMB3.1.1: fix mount failure to some servers when compression enabled (diff)
downloadlinux-dev-cdc3363065aba2711e51019b3d5787f044f8a133.tar.xz
linux-dev-cdc3363065aba2711e51019b3d5787f044f8a133.zip
cifs: do not share tcp sessions of dfs connections
Make sure that we do not share tcp sessions of dfs mounts when mounting regular shares that connect to same server. DFS connections rely on a single instance of tcp in order to do failover properly in cifs_reconnect(). Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index ade7080f7eaa..c0bfc2f01030 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -693,6 +693,9 @@ struct TCP_Server_Info {
bool use_swn_dstaddr;
struct sockaddr_storage swn_dstaddr;
#endif
+#ifdef CONFIG_CIFS_DFS_UPCALL
+ bool is_dfs_conn; /* if a dfs connection */
+#endif
};
struct cifs_credits {