diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-06-24 17:55:50 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2016-07-13 22:53:48 +0300 |
commit | ff3ac5c3dc2323ba54c3d9ef30ef4942a71b251d (patch) | |
tree | 5efd439be1327a0c48c9103336e113186d3051cd /include/linux/sunrpc/svc_xprt.h | |
parent | 4720b0703a0dfcd6da6a308ea71aaacc55beade7 (diff) | |
download | linux-ff3ac5c3dc2323ba54c3d9ef30ef4942a71b251d.tar.xz |
SUNRPC: Add a server side per-connection limit
Allow the user to limit the number of requests serviced through a single
connection, to help prevent faster clients from starving slower clients.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'include/linux/sunrpc/svc_xprt.h')
-rw-r--r-- | include/linux/sunrpc/svc_xprt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sunrpc/svc_xprt.h b/include/linux/sunrpc/svc_xprt.h index 79ba50856707..ad899ffed3be 100644 --- a/include/linux/sunrpc/svc_xprt.h +++ b/include/linux/sunrpc/svc_xprt.h @@ -69,6 +69,7 @@ struct svc_xprt { struct svc_serv *xpt_server; /* service for transport */ atomic_t xpt_reserved; /* space on outq that is rsvd */ + atomic_t xpt_nr_rqsts; /* Number of requests */ struct mutex xpt_mutex; /* to serialize sending data */ spinlock_t xpt_lock; /* protects sk_deferred * and xpt_auth_cache */ |