cifs: avoid redundant calls to disable multichannel
authorShyam Prasad N <sprasad@microsoft.com>
Thu, 1 Feb 2024 11:15:26 +0000 (11:15 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2024 18:10:43 +0000 (19:10 +0100)
commitfb708025b1f105994fdf7452404544a3b78fdc96
tree6730abf60603bcbfb01ed55321e463963a4d49d2
parent14ef61594a5a286ae0d493b8acbf9eac46fd04c4
cifs: avoid redundant calls to disable multichannel

[ Upstream commit e77e15fa5eb1c830597c5ca53ea7af973bae2f78 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/client/smb2pdu.c