cifs: reconnect helper should set reconnect for the right channel
authorShyam Prasad N <sprasad@microsoft.com>
Mon, 30 Oct 2023 11:00:09 +0000 (11:00 +0000)
committerSteve French <stfrench@microsoft.com>
Thu, 2 Nov 2023 13:06:06 +0000 (08:06 -0500)
commitc3326a61cdbf3ce1273d9198b6cbf90965d7e029
treea05a6efe4f0c3724a333cb3179e244e3b0452ad0
parent5c86919455c1edec99ebd3338ad213b59271a71b
cifs: reconnect helper should set reconnect for the right channel

We introduced a helper function to be used by non-cifsd threads to
mark the connection for reconnect. For multichannel, when only
a particular channel needs to be reconnected, this had a bug.

This change fixes that by marking that particular channel
for reconnect.

Fixes: dca65818c80c ("cifs: use a different reconnect helper for non-cifsd threads")
Cc: stable@vger.kernel.org
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/connect.c