Skip to content

Commit a32e813

Browse files
sprasad-microsoftgregkh
authored andcommitted
cifs: avoid redundant calls to disable multichannel
[ Upstream commit e77e15f ] 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: f591062 ("cifs: handle servers that still advertise multichannel after disabling") Signed-off-by: Shyam Prasad N <[email protected]> Signed-off-by: Steve French <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 1675475 commit a32e813

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/smb/client/smb2pdu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ smb2_reconnect(__le16 smb2_command, struct cifs_tcon *tcon,
410410
rc = SMB3_request_interfaces(xid, tcon, false);
411411
free_xid(xid);
412412

413-
if (rc == -EOPNOTSUPP) {
413+
if (rc == -EOPNOTSUPP && ses->chan_count > 1) {
414414
/*
415415
* some servers like Azure SMB server do not advertise
416416
* that multichannel has been disabled with server

0 commit comments

Comments
 (0)