diff options
author | David Howells <dhowells@redhat.com> | 2020-07-02 14:59:46 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2020-09-08 21:10:45 +0100 |
commit | b7a7d67408032843c14071711d6259aada9392f0 (patch) | |
tree | 9e7d3c9daf4566dc07cdbeda4ee20ade628b2543 /net/rxrpc/af_rxrpc.c | |
parent | 4349abdb409b04a5ed4ca4d2c1df7ef0cc16f6bd (diff) | |
download | lwn-b7a7d67408032843c14071711d6259aada9392f0.tar.gz lwn-b7a7d67408032843c14071711d6259aada9392f0.zip |
rxrpc: Impose a maximum number of client calls
Impose a maximum on the number of client rxrpc calls that are allowed
simultaneously. This will be in lieu of a maximum number of client
connections as this is easier to administed as, unlike connections, calls
aren't reusable (to be changed in a subsequent patch)..
This doesn't affect the limits on service calls and connections.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'net/rxrpc/af_rxrpc.c')
-rw-r--r-- | net/rxrpc/af_rxrpc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/rxrpc/af_rxrpc.c b/net/rxrpc/af_rxrpc.c index 186c8a889b16..0a2f4817ec6c 100644 --- a/net/rxrpc/af_rxrpc.c +++ b/net/rxrpc/af_rxrpc.c @@ -308,9 +308,10 @@ struct rxrpc_call *rxrpc_kernel_begin_call(struct socket *sock, key = NULL; /* a no-security key */ memset(&p, 0, sizeof(p)); - p.user_call_ID = user_call_ID; - p.tx_total_len = tx_total_len; - p.interruptibility = interruptibility; + p.user_call_ID = user_call_ID; + p.tx_total_len = tx_total_len; + p.interruptibility = interruptibility; + p.kernel = true; memset(&cp, 0, sizeof(cp)); cp.local = rx->local; |