Skip to content

Commit e77e15f

Browse files
sprasad-microsoftSteve French
authored and
Steve French
committed
cifs: avoid redundant calls to disable multichannel
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]>
1 parent ee36a3b commit e77e15f

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
@@ -419,7 +419,7 @@ smb2_reconnect(__le16 smb2_command, struct cifs_tcon *tcon,
419419
rc = SMB3_request_interfaces(xid, tcon, false);
420420
free_xid(xid);
421421

422-
if (rc == -EOPNOTSUPP) {
422+
if (rc == -EOPNOTSUPP && ses->chan_count > 1) {
423423
/*
424424
* some servers like Azure SMB server do not advertise
425425
* that multichannel has been disabled with server

0 commit comments

Comments
 (0)