summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorShyam Prasad N <sprasad@microsoft.com>2021-11-06 12:31:53 +0100
committerSteve French <stfrench@microsoft.com>2021-11-07 06:09:37 +0100
commitc9f1c19cf7c50949885fa5afdb2cb242d61a7fac (patch)
treefba6794d8dfa142d4dca0b8477318da4b01b4206 /fs/cifs/cifsglob.h
parentMerge tag '5.16-rc-part1-smb3-client-fixes' of git://git.samba.org/sfrench/ci... (diff)
downloadlinux-c9f1c19cf7c50949885fa5afdb2cb242d61a7fac.tar.xz
linux-c9f1c19cf7c50949885fa5afdb2cb242d61a7fac.zip
cifs: nosharesock should not share socket with future sessions
Today, when a new mount is done with nosharesock, we ensure that we don't select an existing matching session. However, we don't mark the connection as nosharesock, which means that those could be shared with future sessions. Fixed it with this commit. Also printing this info in DebugData. Signed-off-by: Shyam Prasad N <sprasad@microsoft.com> Reviewed-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index abff31dcd005..eeea520ede0a 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -592,6 +592,7 @@ struct TCP_Server_Info {
struct list_head pending_mid_q;
bool noblocksnd; /* use blocking sendmsg */
bool noautotune; /* do not autotune send buf sizes */
+ bool nosharesock;
bool tcp_nodelay;
unsigned int credits; /* send no more requests at once */
unsigned int max_credits; /* can override large 32000 default at mnt */