From: Paulo Alcantara Date: Sun, 18 Dec 2022 00:04:14 +0000 (-0300) Subject: cifs: set correct status of tcon ipc when reconnecting X-Git-Tag: v6.6.17~5854^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=25cf01b7c9200d6ace5a59125d8166435dd9dea7;p=platform%2Fkernel%2Flinux-rpi.git cifs: set correct status of tcon ipc when reconnecting 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) Signed-off-by: Steve French --- diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index a66c742..16da583 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -262,8 +262,10 @@ cifs_mark_tcp_ses_conns_for_reconnect(struct TCP_Server_Info *server, tcon->need_reconnect = true; tcon->status = TID_NEED_RECON; } - if (ses->tcon_ipc) + if (ses->tcon_ipc) { ses->tcon_ipc->need_reconnect = true; + ses->tcon_ipc->status = TID_NEED_RECON; + } next_session: spin_unlock(&ses->chan_lock);