aboutsummaryrefslogtreecommitdiff
path: root/fs/nfs
diff options
context:
space:
mode:
authorGravatar Olga Kornievskaia <kolga@netapp.com> 2021-08-27 14:37:18 -0400
committerGravatar Anna Schumaker <Anna.Schumaker@Netapp.com> 2021-08-27 16:37:29 -0400
commitdc48e0abee245e2f0361bd8d4e3b00f70450fab2 (patch)
treea11fc5bebca7ff13ccbfb9fcb987d48d355fff4a /fs/nfs
parentNFSv4 introduce max_connect mount options (diff)
downloadlinux-dc48e0abee245e2f0361bd8d4e3b00f70450fab2.tar.gz
linux-dc48e0abee245e2f0361bd8d4e3b00f70450fab2.tar.bz2
linux-dc48e0abee245e2f0361bd8d4e3b00f70450fab2.zip
SUNRPC enforce creation of no more than max_connect xprts
If we are adding new transports via rpc_clnt_test_and_add_xprt() then check if we've reached the limit. Currently only pnfs path adds transports via that function but this is done in preparation when the client would add new transports when session trunking is detected. A warning is logged if the limit is reached. Signed-off-by: Olga Kornievskaia <kolga@netapp.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index 486dec59972b..23e165d5ec9c 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -541,6 +541,7 @@ int nfs_create_rpc_client(struct nfs_client *clp,
clnt->cl_principal = clp->cl_principal;
clp->cl_rpcclient = clnt;
+ clnt->cl_max_connect = clp->cl_max_connect;
return 0;
}
EXPORT_SYMBOL_GPL(nfs_create_rpc_client);