summaryrefslogtreecommitdiff
path: root/include/linux/sunrpc/xprtmultipath.h
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2017-04-28 10:52:42 -0400
committerTrond Myklebust <trond.myklebust@hammerspace.com>2019-07-06 14:54:49 -0400
commit21f0ffaff510b0530bfdf77da7133c0b99dee2fe (patch)
tree0302c053444f3a371d7c188a33f9834fb7cbc31e /include/linux/sunrpc/xprtmultipath.h
parent44942b4e457beda00981f616402a1a791e8c616e (diff)
SUNRPC: Add basic load balancing to the transport switch
For now, just count the queue length. It is less accurate than counting number of bytes queued, but easier to implement. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'include/linux/sunrpc/xprtmultipath.h')
-rw-r--r--include/linux/sunrpc/xprtmultipath.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sunrpc/xprtmultipath.h b/include/linux/sunrpc/xprtmultipath.h
index af1257c030d2..c6cce3fbf29d 100644
--- a/include/linux/sunrpc/xprtmultipath.h
+++ b/include/linux/sunrpc/xprtmultipath.h
@@ -15,6 +15,8 @@ struct rpc_xprt_switch {
struct kref xps_kref;
unsigned int xps_nxprts;
+ unsigned int xps_nactive;
+ atomic_long_t xps_queuelen;
struct list_head xps_xprt_list;
struct net * xps_net;