Skip to content

Commit 04ea1b3

Browse files
androsadamsonamschuma-ntap
authored andcommitted
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>
1 parent fda0ab4 commit 04ea1b3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fs/nfs/client.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,10 @@ static struct nfs_client *nfs_match_client(const struct nfs_client_initdata *dat
313313
continue;
314314
/* Match the full socket address */
315315
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;
317320

318321
atomic_inc(&clp->cl_count);
319322
return clp;

0 commit comments

Comments
 (0)