Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp57642imu; Thu, 8 Nov 2018 14:44:46 -0800 (PST) X-Google-Smtp-Source: AJdET5eUFGQIyisTC4cU6LrCKpGVWqjVdjdSiHhHnEBTKhkVxPI78mNAhcCR4QhGD5XjRckdzs/7 X-Received: by 2002:a17:902:ac8f:: with SMTP id h15-v6mr6303795plr.46.1541717086117; Thu, 08 Nov 2018 14:44:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541717086; cv=none; d=google.com; s=arc-20160816; b=gtIGOnuZ7IkSYSFQXJ7fmgTBZDP+1e/pyBON20lCKbf0+CTxw2y8bzDQQGLcZ3ecTj pZd0Fqivl8mcjH+jodju/SQuq/PPRH+dpVo+zIGfp659fhlEOdnNGVT+1h8M6SiefwB7 VlitXKogO/maFgV18RfG4HGQDT3FeZ/mXsCEY/0RfR4p1wo9mC1bGlGLS3IG0Jqg8Kcy zcwrJynpjYAoAGTLazdRMgslhxchqgg/v30ChmbZNBTSL4X+NeyuyTpCOCmFTAz7cRLz feviZTdZXJxb0JRlfKJCJ0uazsR6BBpdsig32YQUvfU4DOckrGRddL+QWXXC/qPBGKzM U/bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Em6bv5pZhVCokRgDdiC8ks0TKc8TMLHmpt6yFnbxGcc=; b=xNW7+/GLfaPQRvW5ckDj8+prou0GcPYkmnDevRdWrg1D16o0t6IAKFiio44L5jqN7e QTO52o/Kxdxd/1kikEV+HT0d/Pf8o8gjNRaeaw6mYO+CKfA82T0YQk6fX4ZLw798EZgu JthyDzrOfOg6Z+Tusc4pE7dxD7nWQnKQWk5hbMXmUjLIh4J/3rapNHmFXjY+tXjsrqYh M2/12GYPGsSZx1rNj2yA3lU6zUd86Hv47nEhSTRFSYL6N+fk0eZ+0vVrsLI3Yp+uDjNA CMvkbTNjquj9lo/FI4hY/YorTjuDLhbLTeEDl8Lf+U42+/w3PY2rK6ILP6MzhTGEq0O9 gtKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NGGW0oyR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g11-v6si5223023plp.128.2018.11.08.14.44.31; Thu, 08 Nov 2018 14:44:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NGGW0oyR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728605AbeKIIVX (ORCPT + 99 others); Fri, 9 Nov 2018 03:21:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:48464 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728660AbeKIHdG (ORCPT ); Fri, 9 Nov 2018 02:33:06 -0500 Received: from localhost (unknown [208.72.13.198]) (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 7CE6D2089A; Thu, 8 Nov 2018 21:55:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541714139; bh=DDzLlFpvM/CqpKIjMH0Uy2prPhQf4Qrf4cZmKe5TK2A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NGGW0oyRK1HDecB4FzezFh0RSE1DB+UkNLoGD1ZrYlddNr54qGxed3t4ammdaLwIO ic0NlfT5ZRfm/bX0CCe6gApggzAu92E19kNqvswQmvK3Pg1X3dPXb+B4A6qEzoDS+k xr/irIrbDUji0R+1VJLDnZwWJkcwb06jfsDN7fW4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dai Ngo , Chuck Lever , Trond Myklebust , Sasha Levin Subject: [PATCH 3.18 056/144] NFS: Ignore transport protocol when detecting server trunking Date: Thu, 8 Nov 2018 13:50:27 -0800 Message-Id: <20181108215058.897159886@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181108215054.826084593@linuxfoundation.org> References: <20181108215054.826084593@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.18-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 7a01edf0058df98d6cc734c5a4ecc51f929a86ec ] Detect server trunking across transport protocols. Otherwise, an RDMA mount and a TCP mount of the same server will end up with separate nfs_clients using the same clientid4. Reported-by: Dai Ngo Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust Signed-off-by: Sasha Levin --- fs/nfs/nfs4client.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/fs/nfs/nfs4client.c b/fs/nfs/nfs4client.c index a8a9be4c6cf4..eb8777eb4d2b 100644 --- a/fs/nfs/nfs4client.c +++ b/fs/nfs/nfs4client.c @@ -495,9 +495,6 @@ int nfs40_walk_client_list(struct nfs_client *new, if (pos->rpc_ops != new->rpc_ops) continue; - if (pos->cl_proto != new->cl_proto) - continue; - if (pos->cl_minorversion != new->cl_minorversion) continue; @@ -633,9 +630,6 @@ int nfs41_walk_client_list(struct nfs_client *new, if (pos->rpc_ops != new->rpc_ops) continue; - if (pos->cl_proto != new->cl_proto) - continue; - if (pos->cl_minorversion != new->cl_minorversion) continue; -- 2.17.1