diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/clnt.c | 2 | ||||
-rw-r--r-- | net/sunrpc/xprtsock.c | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index a80ee9b80dcf..651245aa829a 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c | |||
@@ -414,6 +414,8 @@ struct rpc_clnt *rpc_create(struct rpc_create_args *args) | |||
414 | }; | 414 | }; |
415 | char servername[48]; | 415 | char servername[48]; |
416 | 416 | ||
417 | if (args->flags & RPC_CLNT_CREATE_INFINITE_SLOTS) | ||
418 | xprtargs.flags |= XPRT_CREATE_INFINITE_SLOTS; | ||
417 | /* | 419 | /* |
418 | * If the caller chooses not to specify a hostname, whip | 420 | * If the caller chooses not to specify a hostname, whip |
419 | * up a string representation of the passed-in address. | 421 | * up a string representation of the passed-in address. |
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index 3081620cb02c..726e702b7a29 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c | |||
@@ -2762,9 +2762,13 @@ static struct rpc_xprt *xs_setup_tcp(struct xprt_create *args) | |||
2762 | struct rpc_xprt *xprt; | 2762 | struct rpc_xprt *xprt; |
2763 | struct sock_xprt *transport; | 2763 | struct sock_xprt *transport; |
2764 | struct rpc_xprt *ret; | 2764 | struct rpc_xprt *ret; |
2765 | unsigned int max_slot_table_size = xprt_max_tcp_slot_table_entries; | ||
2766 | |||
2767 | if (args->flags & XPRT_CREATE_INFINITE_SLOTS) | ||
2768 | max_slot_table_size = RPC_MAX_SLOT_TABLE_LIMIT; | ||
2765 | 2769 | ||
2766 | xprt = xs_setup_xprt(args, xprt_tcp_slot_table_entries, | 2770 | xprt = xs_setup_xprt(args, xprt_tcp_slot_table_entries, |
2767 | xprt_max_tcp_slot_table_entries); | 2771 | max_slot_table_size); |
2768 | if (IS_ERR(xprt)) | 2772 | if (IS_ERR(xprt)) |
2769 | return xprt; | 2773 | return xprt; |
2770 | transport = container_of(xprt, struct sock_xprt, xprt); | 2774 | transport = container_of(xprt, struct sock_xprt, xprt); |