]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:07:31 +0000 (11:07 +0100)
commit02958835387078718c6837189ab55aac40ce283f
tree368baecebbda26e96fb8dbc853e401d743a0e75c
parentbf876fd9dc2d0c9fff96aef63d4346719f206fc1
cifs: reset connections for all channels when reconnect requested

commit 1f396b9bfe39aaf55ea74a7005806164b236653d upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/smb/client/connect.c