summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorPaulo Alcantara <pc@cjr.nz>2022-12-13 13:15:23 +0100
committerSteve French <stfrench@microsoft.com>2022-12-16 01:37:18 +0100
commitb248586a49a7729f73c504b1e7b958caea45e927 (patch)
tree30c8070f4353e8eced56020678c20a92a56242b6 /fs
parentMerge tag '6.2-rc-smb3-client-fixes-part1' of git://git.samba.org/sfrench/cif... (diff)
downloadlinux-b248586a49a7729f73c504b1e7b958caea45e927.tar.xz
linux-b248586a49a7729f73c504b1e7b958caea45e927.zip
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/cifs/connect.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index e80252a83225..eda75c99a0f5 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -2600,6 +2600,7 @@ cifs_get_tcon(struct cifs_ses *ses, struct smb3_fs_context *ctx)
tcon->nodelete = ctx->nodelete;
tcon->local_lease = ctx->local_lease;
INIT_LIST_HEAD(&tcon->pending_opens);
+ tcon->status = TID_GOOD;
/* schedule query interfaces poll */
INIT_DELAYED_WORK(&tcon->query_interfaces,