Message ID | 20200508123047.448817393@linuxfoundation.org |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=PqvE=6W=vger.kernel.org=stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21DE2C47257 for <stable@archiver.kernel.org>; Fri, 8 May 2020 12:57:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E9AEF2054F for <stable@archiver.kernel.org>; Fri, 8 May 2020 12:57:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588942653; bh=b2QdKOeAuXxVphJVniePs7dMgcY5GW7kcKW3nlDsHuM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=o62Aep4wchgo3C5sX/stepNXP6bj9rdEwENWIH+ghpWznM8P/XHKKrXH818dnfVdG xyDmj0FfhksBMpc6oCygDxSs5aoWKu9LPatlFgeBb+VlWzuPYytSEh38F5xMUzZww7 y0aKBET6fb0+DegtwJTf2qOjfDv/6hCGcxUo72/A= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727891AbgEHMzg (ORCPT <rfc822;stable@archiver.kernel.org>); Fri, 8 May 2020 08:55:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:38520 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730027AbgEHMza (ORCPT <rfc822;stable@vger.kernel.org>); Fri, 8 May 2020 08:55:30 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C3B97218AC; Fri, 8 May 2020 12:55:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588942530; bh=b2QdKOeAuXxVphJVniePs7dMgcY5GW7kcKW3nlDsHuM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KfdBPA/dvoYkcqTRvqU1fJikcbFaIO774aAE1ul2eZQPSQV3cpVqkdAHXVcCtyl1G zwRgOdJKIRDLRALhKT7A+nuqWY7aliULH3nAxDU7dTo1rS8STCmztAMSr/smiIkNMd kLa1JxH5MPfNtvKmWFdzXtUrNifgE1Bjj4QZP2oE= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, "Paulo Alcantara (SUSE)" <pc@cjr.nz>, Aurelien Aptel <aaptel@suse.com>, Ronnie Sahlberg <lsahlber@redhat.com>, Steve French <stfrench@microsoft.com>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 5.6 32/49] cifs: do not share tcons with DFS Date: Fri, 8 May 2020 14:35:49 +0200 Message-Id: <20200508123047.448817393@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200508123042.775047422@linuxfoundation.org> References: <20200508123042.775047422@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index d4a23b48e24d8..9c614d6916c2d 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -3419,6 +3419,10 @@ cifs_find_tcon(struct cifs_ses *ses, struct smb_vol *volume_info) spin_lock(&cifs_tcp_ses_lock); list_for_each(tmp, &ses->tcon_list) { tcon = list_entry(tmp, struct cifs_tcon, tcon_list); +#ifdef CONFIG_CIFS_DFS_UPCALL + if (tcon->dfs_path) + continue; +#endif if (!match_tcon(tcon, volume_info)) continue; ++tcon->tc_count;