diff options
author | Paulo Alcantara <pc@cjr.nz> | 2021-07-16 03:53:53 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2021-07-16 08:21:47 +0300 |
commit | cdc3363065aba2711e51019b3d5787f044f8a133 (patch) | |
tree | 5aa0e09bbcf46a06a9270f21ca2aa760a6b9fa5a /fs/cifs/cifsglob.h | |
parent | 4511d7c8f440ab13520601141d67d13cb074620a (diff) | |
download | linux-cdc3363065aba2711e51019b3d5787f044f8a133.tar.xz |
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.h | 3 |
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 { |