]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cifs: reset connections for all channels when reconnect requested
authorShyam Prasad N <sprasad@microsoft.com>
Mon, 2 Jun 2025 17:07:13 +0000 (22:37 +0530)
committerSteve French <stfrench@microsoft.com>
Mon, 2 Jun 2025 18:34:18 +0000 (13:34 -0500)
commit1f396b9bfe39aaf55ea74a7005806164b236653d
tree4e7d3993da916d753fb5de31c59ba9de7e5440a1
parent037e1bae588eacf98a0fedf52a7b72f14bbf0b26
cifs: reset connections for all channels when reconnect requested

cifs_reconnect can be called with a flag to mark the session as needing
reconnect too. When this is done, we expect the connections of all
channels to be reconnected too, which is not happening today.

Without doing this, we have seen bad things happen when primary and
secondary channels are connected to different servers (in case of cloud
services like Azure Files SMB).

This change would force all connections to reconnect as well, not just
the sessions and tcons.

Cc: <stable@vger.kernel.org>
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/connect.c