Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127437
b: refs/heads/master
c: c72a476
h: refs/heads/master
i:
  127435: 8084ec1
v: v3
  • Loading branch information
Jeff Layton authored and J. Bruce Fields committed Jan 6, 2009
1 parent 0eed181 commit cbff584
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c9233eb7b0b11ef176d4bf68da2ce85464b6ec39
refs/heads/master: c72a476b4b7ecadb80185de31236edb303c1a5d0
8 changes: 8 additions & 0 deletions trunk/fs/lockd/svc.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ static unsigned long nlm_timeout = LOCKD_DFLT_TIMEO;
static int nlm_udpport, nlm_tcpport;
int nsm_use_hostnames = 0;

/* RLIM_NOFILE defaults to 1024. That seems like a reasonable default here. */
static unsigned int nlm_max_connections = 1024;

/*
* Constants needed for the sysctl interface.
*/
Expand Down Expand Up @@ -143,6 +146,9 @@ lockd(void *vrqstp)
long timeout = MAX_SCHEDULE_TIMEOUT;
RPC_IFDEBUG(char buf[RPC_MAX_ADDRBUFLEN]);

/* update sv_maxconn if it has changed */
rqstp->rq_server->sv_maxconn = nlm_max_connections;

if (signalled()) {
flush_signals(current);
if (nlmsvc_ops) {
Expand Down Expand Up @@ -276,6 +282,7 @@ int lockd_up(void)
}

svc_sock_update_bufs(serv);
serv->sv_maxconn = nlm_max_connections;

nlmsvc_task = kthread_run(lockd, nlmsvc_rqst, serv->sv_name);
if (IS_ERR(nlmsvc_task)) {
Expand Down Expand Up @@ -485,6 +492,7 @@ module_param_call(nlm_udpport, param_set_port, param_get_int,
module_param_call(nlm_tcpport, param_set_port, param_get_int,
&nlm_tcpport, 0644);
module_param(nsm_use_hostnames, bool, 0644);
module_param(nlm_max_connections, uint, 0644);

/*
* Initialising and terminating the module.
Expand Down

0 comments on commit cbff584

Please sign in to comment.