Skip to content

Commit 25cf01b

Browse files
Paulo Alcantarasmfrench
authored andcommitted
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: [email protected] Signed-off-by: Paulo Alcantara (SUSE) <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 6fbdd5a commit 25cf01b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fs/cifs/connect.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,10 @@ cifs_mark_tcp_ses_conns_for_reconnect(struct TCP_Server_Info *server,
262262
tcon->need_reconnect = true;
263263
tcon->status = TID_NEED_RECON;
264264
}
265-
if (ses->tcon_ipc)
265+
if (ses->tcon_ipc) {
266266
ses->tcon_ipc->need_reconnect = true;
267+
ses->tcon_ipc->status = TID_NEED_RECON;
268+
}
267269

268270
next_session:
269271
spin_unlock(&ses->chan_lock);

0 commit comments

Comments
 (0)