diff options
author | Andy Adamson <andros@netapp.com> | 2016-09-09 09:22:27 -0400 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2016-09-19 13:08:36 -0400 |
commit | 04ea1b3e6d8ed4978bb608c1748530af3de8c274 (patch) | |
tree | b9085868d1899d714093dfc8f14ad07b53219de5 /fs/nfs/client.c | |
parent | fda0ab41170ee0a1c7a3781ff8cfb4395c3dd784 (diff) |
NFS add xprt switch addrs test to match client
Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs/client.c')
-rw-r--r-- | fs/nfs/client.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c index 0c1b3a002dc2..535c2563b701 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 | |||
313 | continue; | 313 | continue; |
314 | /* Match the full socket address */ | 314 | /* Match the full socket address */ |
315 | if (!rpc_cmp_addr_port(sap, clap)) | 315 | if (!rpc_cmp_addr_port(sap, clap)) |
316 | continue; | 316 | /* Match all xprt_switch full socket addresses */ |
317 | if (!rpc_clnt_xprt_switch_has_addr(clp->cl_rpcclient, | ||
318 | sap)) | ||
319 | continue; | ||
317 | 320 | ||
318 | atomic_inc(&clp->cl_count); | 321 | atomic_inc(&clp->cl_count); |
319 | return clp; | 322 | return clp; |