kernel-fxtec-pro1x/include/linux/sunrpc
Jeff Layton c9233eb7b0 sunrpc: add sv_maxconn field to svc_serv (try #3)
svc_check_conn_limits() attempts to prevent denial of service attacks
by having the service close old connections once it reaches a
threshold. This threshold is based on the number of threads in the
service:

	(serv->sv_nrthreads + 3) * 20

Once we reach this, we drop the oldest connections and a printk pops
to warn the admin that they should increase the number of threads.

Increasing the number of threads isn't an option however for services
like lockd. We don't want to eliminate this check entirely for such
services but we need some way to increase this limit.

This patch adds a sv_maxconn field to the svc_serv struct. When it's
set to 0, we use the current method to calculate the max number of
connections. RPC services can then set this on an as-needed basis.

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>
2009-01-06 11:53:47 -05:00
..
auth.h
auth_gss.h net: remove CVS keywords 2008-06-11 21:00:38 -07:00
cache.h
clnt.h rpc: pass target name down to rpc level on callbacks 2008-12-23 16:17:40 -05:00
debug.h
gss_api.h net: remove CVS keywords 2008-06-11 21:00:38 -07:00
gss_asn1.h
gss_err.h
gss_krb5.h gss_krb5: create a define for token header size and clean up ptr location 2008-06-23 13:47:25 -04:00
gss_spkm3.h
Kbuild
metrics.h
msg_prot.h
rpc_pipe_fs.h rpc: add an rpc_pipe_open method 2008-12-23 16:08:32 -05:00
rpc_rdma.h
sched.h rpc: minor cleanup of scheduler callback code 2008-07-09 12:09:14 -04:00
stats.h
svc.h sunrpc: add sv_maxconn field to svc_serv (try #3) 2009-01-06 11:53:47 -05:00
svc_rdma.h svcrdma: Modify the RPC recv path to use FRMR when available 2008-10-06 14:46:01 -05:00
svc_xprt.h misc: replace NIPQUAD() 2008-10-31 00:56:49 -07:00
svcauth.h
svcauth_gss.h nfsd: pass client principal name in rsc downcall 2008-12-23 16:17:15 -05:00
svcsock.h NLM: Remove unused argument from svc_addsock() function 2008-10-04 17:12:27 -04:00
timer.h
types.h
xdr.h SUNRPC: Remove the last remnant of the BKL... 2008-12-23 15:21:31 -05:00
xprt.h sunrpc: get rid of rpc_rqst.rq_bufsize 2008-12-23 16:06:13 -05:00
xprtrdma.h RPC/RDMA: harden connection logic against missing/late rdma_cm upcalls. 2008-10-10 15:13:31 -04:00
xprtsock.h