cifs: after disabling multichannel, mark tcon for reconnect
authorShyam Prasad N <sprasad@microsoft.com>
Fri, 29 Dec 2023 11:30:07 +0000 (11:30 +0000)
committerSteve French <stfrench@microsoft.com>
Fri, 29 Dec 2023 15:03:08 +0000 (09:03 -0600)
commit27e1fd343f80168ff456785c2443136b6b7ca3cc
treefb94c1375b2d1ba5e1a4126b43fed3375f5c3cc6
parent861deac3b092f37b2c5e6871732f3e11486f7082
cifs: after disabling multichannel, mark tcon for reconnect

Once the server disables multichannel for an active multichannel
session, on the following reconnect, the client would reduce
the number of channels to 1. However, it could be the case that
the tree connect was active on one of these disabled channels.
This results in an unrecoverable state.

This change fixes that by making sure that whenever a channel
is being terminated, the session and tcon are marked for
reconnect too. This could mean a few redundant tree connect
calls to the server, but considering that this is not a frequent
event, we should be okay.

Fixes: ee1d21794e55 ("cifs: handle when server stops supporting multichannel")
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/connect.c