summaryrefslogtreecommitdiffstats
path: root/fs/smb/client/cifsproto.h
diff options
context:
space:
mode:
authorShyam Prasad N <sprasad@microsoft.com>2023-10-13 11:40:09 +0000
committerSteve French <stfrench@microsoft.com>2023-11-10 09:33:19 -0600
commitee1d21794e55ab76505745d24101331552182002 (patch)
treefd10196528ecb09da9177f173cbed942591f644e /fs/smb/client/cifsproto.h
parent705fc522fe9d58848c253ee0948567060f36e2a7 (diff)
downloadlinux-stable-ee1d21794e55ab76505745d24101331552182002.tar.gz
linux-stable-ee1d21794e55ab76505745d24101331552182002.tar.bz2
linux-stable-ee1d21794e55ab76505745d24101331552182002.zip
cifs: handle when server stops supporting multichannel
When a server stops supporting multichannel, we will keep attempting reconnects to the secondary channels today. Avoid this by freeing extra channels when negotiate returns no multichannel support. Signed-off-by: Shyam Prasad N <sprasad@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb/client/cifsproto.h')
-rw-r--r--fs/smb/client/cifsproto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/smb/client/cifsproto.h b/fs/smb/client/cifsproto.h
index 00ad41633e26..d87e2c26cce2 100644
--- a/fs/smb/client/cifsproto.h
+++ b/fs/smb/client/cifsproto.h
@@ -641,6 +641,8 @@ cifs_chan_needs_reconnect(struct cifs_ses *ses,
bool
cifs_chan_is_iface_active(struct cifs_ses *ses,
struct TCP_Server_Info *server);
+void
+cifs_disable_secondary_channels(struct cifs_ses *ses);
int
cifs_chan_update_iface(struct cifs_ses *ses, struct TCP_Server_Info *server);
int