cifs: set correct status of tcon ipc when reconnecting
authorPaulo Alcantara <pc@cjr.nz>
Sun, 18 Dec 2022 00:04:14 +0000 (21:04 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jan 2023 10:11:50 +0000 (11:11 +0100)
commitf22532d6bbafc6ef3599b1f71b81e056406d5c51
tree422d8de0b09d0c9375fb54a1965b41478e162d90
parenta37d718a0e0b1d3417c3d0098399266cb6d02ef8
cifs: set correct status of tcon ipc when reconnecting

commit 25cf01b7c9200d6ace5a59125d8166435dd9dea7 upstream.

The status of tcon ipcs were not being set to TID_NEED_RECO when
marking sessions and tcons to be reconnected, therefore not sending
tree connect to those ipcs in cifs_tree_connect() and leaving them
disconnected.

Cc: stable@vger.kernel.org
Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/connect.c