From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2AE78AD48 for ; Wed, 4 Jan 2023 16:20:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8EC1EC433D2; Wed, 4 Jan 2023 16:20:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1672849205; bh=GXH2nvQbcfzqidzntJ+IPmXFbeP9KrAbfGv6dLOTiEM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l/r1gQPrv2ZVTBeWRE1TylKGi+axqs6xkptZjy4iWiWbsiSjGTx9Om7W4bGSY6yhY CTDgn9umsFpqBrmEKOHkcpXKLhoeOvP9e5mEJNx5teUdiH9pZd+Gzk1MziwIlzDZbq 5QTExaetPRjNoomtGY2fYonZbPKyS6OF+984cTII= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, "Paulo Alcantara (SUSE)" , Steve French Subject: [PATCH 6.0 082/177] cifs: set correct tcon status after initial tree connect Date: Wed, 4 Jan 2023 17:06:13 +0100 Message-Id: <20230104160510.134080631@linuxfoundation.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230104160507.635888536@linuxfoundation.org> References: <20230104160507.635888536@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Paulo Alcantara commit b248586a49a7729f73c504b1e7b958caea45e927 upstream. 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) Signed-off-by: Steve French Signed-off-by: Greg Kroah-Hartman --- fs/cifs/connect.c | 1 + 1 file changed, 1 insertion(+) --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -2600,6 +2600,7 @@ cifs_get_tcon(struct cifs_ses *ses, stru 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,