Commit 51e2cba8b5936c13b40f0fa11aa4e84683dbc751

Authored by Andy Grover
1 parent ab1a6926f5

RDS: Move atomic stats from general to ib-specific area

Signed-off-by: Andy Grover <andy.grover@oracle.com>

Showing 5 changed files with 6 additions and 6 deletions Side-by-side Diff

... ... @@ -202,6 +202,8 @@
202 202 uint64_t s_ib_rdma_mr_pool_flush;
203 203 uint64_t s_ib_rdma_mr_pool_wait;
204 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 209 extern struct workqueue_struct *rds_ib_wq;
... ... @@ -132,9 +132,9 @@
132 132 wc_status, rds_atomic_send_complete);
133 133  
134 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 136 else
137   - rds_stats_inc(s_atomic_fadd);
  137 + rds_ib_stats_inc(s_ib_atomic_fadd);
138 138 }
139 139  
140 140 /*
... ... @@ -67,6 +67,8 @@
67 67 "ib_rdma_mr_pool_flush",
68 68 "ib_rdma_mr_pool_wait",
69 69 "ib_rdma_mr_pool_depleted",
  70 + "ib_atomic_cswp",
  71 + "ib_atomic_fadd",
70 72 };
71 73  
72 74 unsigned int rds_ib_stats_info_copy(struct rds_info_iterator *iter,
... ... @@ -566,8 +566,6 @@
566 566 uint64_t s_cong_update_received;
567 567 uint64_t s_cong_send_error;
568 568 uint64_t s_cong_send_blocked;
569   - uint64_t s_atomic_cswp;
570   - uint64_t s_atomic_fadd;
571 569 };
572 570  
573 571 /* af_rds.c */
... ... @@ -75,8 +75,6 @@
75 75 "cong_update_received",
76 76 "cong_send_error",
77 77 "cong_send_blocked",
78   - "s_atomic_cswp",
79   - "s_atomic_fadd",
80 78 };
81 79  
82 80 void rds_stats_info_copy(struct rds_info_iterator *iter,