Return-Path: Received: from mx144.netapp.com ([216.240.21.25]:49462 "EHLO mx144.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933132AbcIAPqu (ORCPT ); Thu, 1 Sep 2016 11:46:50 -0400 From: To: CC: , , Andy Adamson Subject: [PATCH Version 9 RESEND 10/12] NFS add xprt switch addrs test to match client Date: Thu, 1 Sep 2016 11:44:51 -0400 Message-ID: <1472744693-124241-11-git-send-email-andros@netapp.com> In-Reply-To: <1472744693-124241-1-git-send-email-andros@netapp.com> References: <1472744693-124241-1-git-send-email-andros@netapp.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-nfs-owner@vger.kernel.org List-ID: From: Andy Adamson Signed-off-by: Andy Adamson --- fs/nfs/client.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/nfs/client.c b/fs/nfs/client.c index 4849d0f..0958a6a 100644 --- a/fs/nfs/client.c +++ b/fs/nfs/client.c @@ -313,7 +313,10 @@ static struct nfs_client *nfs_match_client(const struct nfs_client_initdata *dat continue; /* Match the full socket address */ if (!rpc_cmp_addr_port(sap, clap)) - continue; + /* Match all xprt_switch full socket addresses */ + if (!rpc_clnt_xprt_switch_has_addr(clp->cl_rpcclient, + sap)) + continue; atomic_inc(&clp->cl_count); return clp; -- 1.8.3.1