Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

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

+6 -6
+2
net/rds/ib.h
··· 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;
+2 -2
net/rds/ib_send.c
··· 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 /*
+2
net/rds/ib_stats.c
··· 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,
-2
net/rds/rds.h
··· 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 */
-2
net/rds/stats.c
··· 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,