mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 04:47:05 +00:00
cifs: set correct status of tcon ipc when reconnecting
commit 25cf01b7c9
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>
This commit is contained in:
parent
dffae77c70
commit
ba6ea757d5
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue