mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 06:10:56 +00:00
cifs: set correct tcon status after initial tree connect
cifs_tcon::status wasn't correctly updated to TID_GOOD after initial tree connect thus staying at TID_NEW as long as it was connected. Cc: stable@vger.kernel.org Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
851f657a86
commit
b248586a49
1 changed files with 1 additions and 0 deletions
|
@ -2600,6 +2600,7 @@ cifs_get_tcon(struct cifs_ses *ses, struct smb3_fs_context *ctx)
|
||||||
tcon->nodelete = ctx->nodelete;
|
tcon->nodelete = ctx->nodelete;
|
||||||
tcon->local_lease = ctx->local_lease;
|
tcon->local_lease = ctx->local_lease;
|
||||||
INIT_LIST_HEAD(&tcon->pending_opens);
|
INIT_LIST_HEAD(&tcon->pending_opens);
|
||||||
|
tcon->status = TID_GOOD;
|
||||||
|
|
||||||
/* schedule query interfaces poll */
|
/* schedule query interfaces poll */
|
||||||
INIT_DELAYED_WORK(&tcon->query_interfaces,
|
INIT_DELAYED_WORK(&tcon->query_interfaces,
|
||||||
|
|
Loading…
Reference in a new issue