mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 21:15:53 +02:00
cifs: avoid redundant calls to disable multichannel
[ Upstream commite77e15fa5e] When the server reports query network interface info call as unsupported following a tree connect, it means that multichannel is unsupported, even if the server capabilities report otherwise. When this happens, cifs_chan_skip_or_disable is called to disable multichannel on the client. However, we only need to call this when multichannel is currently setup. Fixes:f591062bdb("cifs: handle servers that still advertise multichannel after disabling") Signed-off-by: Shyam Prasad N <sprasad@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
14ef61594a
commit
fb708025b1
|
|
@ -410,7 +410,7 @@ smb2_reconnect(__le16 smb2_command, struct cifs_tcon *tcon,
|
|||
rc = SMB3_request_interfaces(xid, tcon, false);
|
||||
free_xid(xid);
|
||||
|
||||
if (rc == -EOPNOTSUPP) {
|
||||
if (rc == -EOPNOTSUPP && ses->chan_count > 1) {
|
||||
/*
|
||||
* some servers like Azure SMB server do not advertise
|
||||
* that multichannel has been disabled with server
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user