diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-05-13 12:51:49 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-05-14 15:09:36 -0400 |
commit | d60dbb20a74c2cfa142be0a34dac3c6547ea086c (patch) | |
tree | 7af95739f8fbbef11f490b5b58bf639dbbe8a181 /include | |
parent | 9c7e7e23371e629dbb3b341610a418cdf1c19d91 (diff) |
SUNRPC: Move the task->tk_bytes_sent and tk_rtt to struct rpc_rqst
It seems strange to maintain stats for bytes_sent in one structure, and
bytes received in another. Try to assemble all the RPC request-related
stats in struct rpc_rqst
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sunrpc/sched.h | 4 | ||||
-rw-r--r-- | include/linux/sunrpc/xprt.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/sunrpc/sched.h b/include/linux/sunrpc/sched.h index 76720d262ef2..46ebef1788c6 100644 --- a/include/linux/sunrpc/sched.h +++ b/include/linux/sunrpc/sched.h | |||
@@ -80,9 +80,7 @@ struct rpc_task { | |||
80 | } u; | 80 | } u; |
81 | 81 | ||
82 | unsigned short tk_timeouts; /* maj timeouts */ | 82 | unsigned short tk_timeouts; /* maj timeouts */ |
83 | size_t tk_bytes_sent; /* total bytes sent */ | 83 | ktime_t tk_start; /* RPC task init timestamp */ |
84 | ktime_t tk_start, /* RPC task init timestamp */ | ||
85 | tk_rtt; /* round-trip time */ | ||
86 | 84 | ||
87 | pid_t tk_owner; /* Process id for batching tasks */ | 85 | pid_t tk_owner; /* Process id for batching tasks */ |
88 | unsigned char tk_priority : 2;/* Task priority */ | 86 | unsigned char tk_priority : 2;/* Task priority */ |
diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h index f8851861b744..b51470302399 100644 --- a/include/linux/sunrpc/xprt.h +++ b/include/linux/sunrpc/xprt.h | |||
@@ -66,8 +66,6 @@ struct rpc_rqst { | |||
66 | struct rpc_task * rq_task; /* RPC task data */ | 66 | struct rpc_task * rq_task; /* RPC task data */ |
67 | __be32 rq_xid; /* request XID */ | 67 | __be32 rq_xid; /* request XID */ |
68 | int rq_cong; /* has incremented xprt->cong */ | 68 | int rq_cong; /* has incremented xprt->cong */ |
69 | int rq_reply_bytes_recvd; /* number of reply */ | ||
70 | /* bytes received */ | ||
71 | u32 rq_seqno; /* gss seq no. used on req. */ | 69 | u32 rq_seqno; /* gss seq no. used on req. */ |
72 | int rq_enc_pages_num; | 70 | int rq_enc_pages_num; |
73 | struct page **rq_enc_pages; /* scratch pages for use by | 71 | struct page **rq_enc_pages; /* scratch pages for use by |
@@ -78,12 +76,16 @@ struct rpc_rqst { | |||
78 | __u32 * rq_buffer; /* XDR encode buffer */ | 76 | __u32 * rq_buffer; /* XDR encode buffer */ |
79 | size_t rq_callsize, | 77 | size_t rq_callsize, |
80 | rq_rcvsize; | 78 | rq_rcvsize; |
79 | size_t rq_xmit_bytes_sent; /* total bytes sent */ | ||
80 | size_t rq_reply_bytes_recvd; /* total reply bytes */ | ||
81 | /* received */ | ||
81 | 82 | ||
82 | struct xdr_buf rq_private_buf; /* The receive buffer | 83 | struct xdr_buf rq_private_buf; /* The receive buffer |
83 | * used in the softirq. | 84 | * used in the softirq. |
84 | */ | 85 | */ |
85 | unsigned long rq_majortimeo; /* major timeout alarm */ | 86 | unsigned long rq_majortimeo; /* major timeout alarm */ |
86 | unsigned long rq_timeout; /* Current timeout value */ | 87 | unsigned long rq_timeout; /* Current timeout value */ |
88 | ktime_t rq_rtt; /* round-trip time */ | ||
87 | unsigned int rq_retries; /* # of retries */ | 89 | unsigned int rq_retries; /* # of retries */ |
88 | unsigned int rq_connect_cookie; | 90 | unsigned int rq_connect_cookie; |
89 | /* A cookie used to track the | 91 | /* A cookie used to track the |