diff options
author | Shyam Prasad N <sprasad@microsoft.com> | 2024-02-01 12:15:26 +0100 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2024-02-01 19:10:57 +0100 |
commit | e77e15fa5eb1c830597c5ca53ea7af973bae2f78 (patch) | |
tree | 27914efd40f547043118be736ada7151030b1fd4 /fs | |
parent | cifs: make sure that channel scaling is done only once (diff) | |
download | linux-e77e15fa5eb1c830597c5ca53ea7af973bae2f78.tar.xz linux-e77e15fa5eb1c830597c5ca53ea7af973bae2f78.zip |
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: f591062bdbf4 ("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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/smb/client/smb2pdu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/smb/client/smb2pdu.c b/fs/smb/client/smb2pdu.c index 6db54c6ef571..e257b10bc820 100644 --- a/fs/smb/client/smb2pdu.c +++ b/fs/smb/client/smb2pdu.c @@ -419,7 +419,7 @@ skip_sess_setup: 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 |