summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorPaulo Alcantara <pc@cjr.nz>2022-12-17 21:04:14 -0300
committerSteve French <stfrench@microsoft.com>2022-12-19 08:03:12 -0600
commit25cf01b7c9200d6ace5a59125d8166435dd9dea7 (patch)
tree8f3d0399fc35875daa4d63f3ac249f42991452e7 /fs
parent6fbdd5ab240443e3f8574eb9d407d03daace1ddc (diff)
downloadlinux-25cf01b7c9200d6ace5a59125d8166435dd9dea7.tar.bz2
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) <pc@cjr.nz> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/cifs/connect.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index a66c7422b8bc..16da583536a4 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);