Skip to content

Commit b248586

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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/cifs/connect.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2600,6 +2600,7 @@ cifs_get_tcon(struct cifs_ses *ses, struct smb3_fs_context *ctx)
26002600
tcon->nodelete = ctx->nodelete;
26012601
tcon->local_lease = ctx->local_lease;
26022602
INIT_LIST_HEAD(&tcon->pending_opens);
2603+
tcon->status = TID_GOOD;
26032604

26042605
/* schedule query interfaces poll */
26052606
INIT_DELAYED_WORK(&tcon->query_interfaces,

0 commit comments

Comments
 (0)