summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNeil Brown <neilb@cse.unsw.edu.au>2002-02-25 22:24:00 -0800
committerLinus Torvalds <torvalds@penguin.transmeta.com>2002-02-25 22:24:00 -0800
commitafdb4fa2b04a7e90e0746bc3d031a552656c7709 (patch)
tree95a1e7896d322db534bf8520f2d2831f255f1c42 /include
parent4e2f6bfe215882c3df7b2e8d6704bd28a4a9a664 (diff)
[PATCH] PATCH 15/16: NFSD: TCP: Limit number of active tcp connections to an RPC service
Limit number of active tcp connections to an RPC service If a connection comes in and that results in number of connections being more than 5 times the number of threads, then we close a connection. We randomly drop with the oldest or the newest connection. Thus if we are flooded with connection requests, some will get in and hopefully stay long enough to service at least one request.
Diffstat (limited to 'include')
-rw-r--r--include/linux/sunrpc/svc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h
index c56c9d726bd0..2d2461bb38c8 100644
--- a/include/linux/sunrpc/svc.h
+++ b/include/linux/sunrpc/svc.h
@@ -38,6 +38,7 @@ struct svc_serv {
struct list_head sv_permsocks; /* all permanent sockets */
struct list_head sv_tempsocks; /* all temporary sockets */
+ int sv_tmpcnt; /* count of temporary sockets */
char * sv_name; /* service name */
};