diff options
author | Paulo Alcantara | 2022-12-17 21:04:14 -0300 |
---|---|---|
committer | Greg Kroah-Hartman | 2023-01-07 11:11:50 +0100 |
commit | f22532d6bbafc6ef3599b1f71b81e056406d5c51 (patch) | |
tree | 422d8de0b09d0c9375fb54a1965b41478e162d90 /fs/cifs | |
parent | a37d718a0e0b1d3417c3d0098399266cb6d02ef8 (diff) |
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>
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/connect.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 0d0e1735aa00..7e7f712f97fd 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -279,8 +279,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); |