Skip to content

Commit

Permalink
RDS: Move atomic stats from general to ib-specific area
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Grover <andy.grover@oracle.com>
  • Loading branch information
Andy Grover committed Sep 9, 2010
1 parent ab1a692 commit 51e2cba
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 2 additions & 0 deletions net/rds/ib.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ struct rds_ib_statistics {
uint64_t s_ib_rdma_mr_pool_flush;
uint64_t s_ib_rdma_mr_pool_wait;
uint64_t s_ib_rdma_mr_pool_depleted;
uint64_t s_ib_atomic_cswp;
uint64_t s_ib_atomic_fadd;
};

extern struct workqueue_struct *rds_ib_wq;
Expand Down
4 changes: 2 additions & 2 deletions net/rds/ib_send.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ static void rds_ib_send_unmap_atomic(struct rds_ib_connection *ic,
wc_status, rds_atomic_send_complete);

if (op->op_type == RDS_ATOMIC_TYPE_CSWP)
rds_stats_inc(s_atomic_cswp);
rds_ib_stats_inc(s_ib_atomic_cswp);
else
rds_stats_inc(s_atomic_fadd);
rds_ib_stats_inc(s_ib_atomic_fadd);
}

/*
Expand Down
2 changes: 2 additions & 0 deletions net/rds/ib_stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ static const char *const rds_ib_stat_names[] = {
"ib_rdma_mr_pool_flush",
"ib_rdma_mr_pool_wait",
"ib_rdma_mr_pool_depleted",
"ib_atomic_cswp",
"ib_atomic_fadd",
};

unsigned int rds_ib_stats_info_copy(struct rds_info_iterator *iter,
Expand Down
2 changes: 0 additions & 2 deletions net/rds/rds.h
Original file line number Diff line number Diff line change
Expand Up @@ -566,8 +566,6 @@ struct rds_statistics {
uint64_t s_cong_update_received;
uint64_t s_cong_send_error;
uint64_t s_cong_send_blocked;
uint64_t s_atomic_cswp;
uint64_t s_atomic_fadd;
};

/* af_rds.c */
Expand Down
2 changes: 0 additions & 2 deletions net/rds/stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ static const char *const rds_stat_names[] = {
"cong_update_received",
"cong_send_error",
"cong_send_blocked",
"s_atomic_cswp",
"s_atomic_fadd",
};

void rds_stats_info_copy(struct rds_info_iterator *iter,
Expand Down

0 comments on commit 51e2cba

Please sign in to comment.