SUNRPC enforce creation of no more than max_connect xprts
authorOlga Kornievskaia <kolga@netapp.com>
Fri, 27 Aug 2021 18:37:18 +0000 (14:37 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 27 Aug 2021 20:37:29 +0000 (16:37 -0400)
commitdc48e0abee245e2f0361bd8d4e3b00f70450fab2
treea11fc5bebca7ff13ccbfb9fcb987d48d355fff4a
parent7e134205f62955369619021a695cd78fefd32451
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>
fs/nfs/client.c
include/linux/sunrpc/clnt.h
net/sunrpc/clnt.c