]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
lockd: set svc_serv->sv_maxconn to a more reasonable value (try #3)
authorJeff Layton <jlayton@redhat.com>
Mon, 20 Oct 2008 15:51:58 +0000 (11:51 -0400)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Tue, 6 Jan 2009 16:53:48 +0000 (11:53 -0500)
commitc72a476b4b7ecadb80185de31236edb303c1a5d0
treec57ac715970c4a3363b28122ce2d3b47fe179b7f
parentc9233eb7b0b11ef176d4bf68da2ce85464b6ec39
lockd: set svc_serv->sv_maxconn to a more reasonable value (try #3)

The default method for calculating the number of connections allowed
per RPC service arbitrarily limits single-threaded services to 80
connections. This is too low for services like lockd and artificially
limits the number of TCP clients that it can support.

Have lockd set a default sv_maxconn value to 1024 (which is the typical
default value for RLIMIT_NOFILE. Also add a module parameter to allow an
admin to set this to an arbitrary value.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Acked-by: Neil Brown <neilb@suse.de>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/lockd/svc.c