Commit 25cf01b7 authored by Paulo Alcantara's avatar Paulo Alcantara Committed by Steve French

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: default avatarPaulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 6fbdd5ab
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment