cifs: handle when server stops supporting multichannel
authorShyam Prasad N <sprasad@microsoft.com>
Fri, 13 Oct 2023 11:40:09 +0000 (11:40 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Feb 2024 00:18:48 +0000 (16:18 -0800)
commit3e1615361b6fa6e6e0bfae0efb3a8c2255ac101f
tree895e11e9bd6998e5e08c0866ee8f94c3867e4a4a
parent5075e9f4e0461d4ce394c6e42338fae859bd926f
cifs: handle when server stops supporting multichannel

[ Upstream commit ee1d21794e55ab76505745d24101331552182002 ]

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>
Stable-dep-of: 78e727e58e54 ("cifs: update iface_last_update on each query-and-update")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/client/cifsglob.h
fs/smb/client/cifsproto.h
fs/smb/client/connect.c
fs/smb/client/sess.c
fs/smb/client/smb2pdu.c
fs/smb/client/transport.c