diff options
author | Andy Grover <andy.grover@oracle.com> | 2010-03-29 20:47:30 -0400 |
---|---|---|
committer | Andy Grover <andy.grover@oracle.com> | 2010-09-08 21:12:20 -0400 |
commit | 51e2cba8b5936c13b40f0fa11aa4e84683dbc751 (patch) | |
tree | 13a6924d085f0e6e734ad1a2a43c1d3af5208101 /net/rds | |
parent | ab1a6926f589c51e7a57ce7544d85272c4acc854 (diff) |
RDS: Move atomic stats from general to ib-specific area
Signed-off-by: Andy Grover <andy.grover@oracle.com>
Diffstat (limited to 'net/rds')
-rw-r--r-- | net/rds/ib.h | 2 | ||||
-rw-r--r-- | net/rds/ib_send.c | 4 | ||||
-rw-r--r-- | net/rds/ib_stats.c | 2 | ||||
-rw-r--r-- | net/rds/rds.h | 2 | ||||
-rw-r--r-- | net/rds/stats.c | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/net/rds/ib.h b/net/rds/ib.h index 4c2ee2401979..c506604325d5 100644 --- a/net/rds/ib.h +++ b/net/rds/ib.h | |||
@@ -202,6 +202,8 @@ struct rds_ib_statistics { | |||
202 | uint64_t s_ib_rdma_mr_pool_flush; | 202 | uint64_t s_ib_rdma_mr_pool_flush; |
203 | uint64_t s_ib_rdma_mr_pool_wait; | 203 | uint64_t s_ib_rdma_mr_pool_wait; |
204 | uint64_t s_ib_rdma_mr_pool_depleted; | 204 | uint64_t s_ib_rdma_mr_pool_depleted; |
205 | uint64_t s_ib_atomic_cswp; | ||
206 | uint64_t s_ib_atomic_fadd; | ||
205 | }; | 207 | }; |
206 | 208 | ||
207 | extern struct workqueue_struct *rds_ib_wq; | 209 | extern struct workqueue_struct *rds_ib_wq; |
diff --git a/net/rds/ib_send.c b/net/rds/ib_send.c index 6461a152bd5b..657037d96cbf 100644 --- a/net/rds/ib_send.c +++ b/net/rds/ib_send.c | |||
@@ -132,9 +132,9 @@ static void rds_ib_send_unmap_atomic(struct rds_ib_connection *ic, | |||
132 | wc_status, rds_atomic_send_complete); | 132 | wc_status, rds_atomic_send_complete); |
133 | 133 | ||
134 | if (op->op_type == RDS_ATOMIC_TYPE_CSWP) | 134 | if (op->op_type == RDS_ATOMIC_TYPE_CSWP) |
135 | rds_stats_inc(s_atomic_cswp); | 135 | rds_ib_stats_inc(s_ib_atomic_cswp); |
136 | else | 136 | else |
137 | rds_stats_inc(s_atomic_fadd); | 137 | rds_ib_stats_inc(s_ib_atomic_fadd); |
138 | } | 138 | } |
139 | 139 | ||
140 | /* | 140 | /* |
diff --git a/net/rds/ib_stats.c b/net/rds/ib_stats.c index d2c904dd6fbc..2d5965d6e97c 100644 --- a/net/rds/ib_stats.c +++ b/net/rds/ib_stats.c | |||
@@ -67,6 +67,8 @@ static const char *const rds_ib_stat_names[] = { | |||
67 | "ib_rdma_mr_pool_flush", | 67 | "ib_rdma_mr_pool_flush", |
68 | "ib_rdma_mr_pool_wait", | 68 | "ib_rdma_mr_pool_wait", |
69 | "ib_rdma_mr_pool_depleted", | 69 | "ib_rdma_mr_pool_depleted", |
70 | "ib_atomic_cswp", | ||
71 | "ib_atomic_fadd", | ||
70 | }; | 72 | }; |
71 | 73 | ||
72 | unsigned int rds_ib_stats_info_copy(struct rds_info_iterator *iter, | 74 | unsigned int rds_ib_stats_info_copy(struct rds_info_iterator *iter, |
diff --git a/net/rds/rds.h b/net/rds/rds.h index c3a668b9cc14..2f19d49fac9c 100644 --- a/net/rds/rds.h +++ b/net/rds/rds.h | |||
@@ -566,8 +566,6 @@ struct rds_statistics { | |||
566 | uint64_t s_cong_update_received; | 566 | uint64_t s_cong_update_received; |
567 | uint64_t s_cong_send_error; | 567 | uint64_t s_cong_send_error; |
568 | uint64_t s_cong_send_blocked; | 568 | uint64_t s_cong_send_blocked; |
569 | uint64_t s_atomic_cswp; | ||
570 | uint64_t s_atomic_fadd; | ||
571 | }; | 569 | }; |
572 | 570 | ||
573 | /* af_rds.c */ | 571 | /* af_rds.c */ |
diff --git a/net/rds/stats.c b/net/rds/stats.c index b77be8be33ba..344929a663e5 100644 --- a/net/rds/stats.c +++ b/net/rds/stats.c | |||
@@ -75,8 +75,6 @@ static const char *const rds_stat_names[] = { | |||
75 | "cong_update_received", | 75 | "cong_update_received", |
76 | "cong_send_error", | 76 | "cong_send_error", |
77 | "cong_send_blocked", | 77 | "cong_send_blocked", |
78 | "s_atomic_cswp", | ||
79 | "s_atomic_fadd", | ||
80 | }; | 78 | }; |
81 | 79 | ||
82 | void rds_stats_info_copy(struct rds_info_iterator *iter, | 80 | void rds_stats_info_copy(struct rds_info_iterator *iter, |