Skip to content

Commit 8f2a6a7

Browse files
Wengang-oraclegerd-rausch
authored andcommitted
rds: remove the _reuse_ rds ib pool statistics
fix a regress introduced by ceb99ba The above commit introduced the two new statistics to rds_ib_statistics. uint64_t s_ib_rdma_mr_1m_pool_reuse; uint64_t s_ib_rdma_mr_8k_pool_reuse; But didn't have rds-info changed accordingly thus rds-info gets shifted stats. this removes these two stats. Orabug: 22124214 Signed-off-by: Wengang Wang <[email protected]> Acked-by: Santosh Shilimkar <[email protected]> Acked-by: Ajaykumar Hotchandani <[email protected]> Orabug: 27364391 (cherry picked from commit 177c47a) cherry-pick-repo=linux-uek.git Signed-off-by: Gerd Rausch <[email protected]> Signed-off-by: Somasundaram Krishnasamy <[email protected]>
1 parent 5a9e6cc commit 8f2a6a7

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

net/rds/ib.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,8 +494,6 @@ struct rds_ib_statistics {
494494
uint64_t s_ib_rdma_mr_1m_pool_flush;
495495
uint64_t s_ib_rdma_mr_1m_pool_wait;
496496
uint64_t s_ib_rdma_mr_1m_pool_depleted;
497-
uint64_t s_ib_rdma_mr_1m_pool_reuse;
498-
uint64_t s_ib_rdma_mr_8k_pool_reuse;
499497
uint64_t s_ib_atomic_cswp;
500498
uint64_t s_ib_atomic_fadd;
501499
uint64_t s_ib_srq_lows;

net/rds/ib_rdma.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -320,10 +320,6 @@ static inline struct rds_ib_mr *rds_ib_reuse_fmr(struct rds_ib_mr_pool *pool)
320320
clear_bit(CLEAN_LIST_BUSY_BIT, flag);
321321
preempt_enable();
322322
if (ibmr) {
323-
if (pool->pool_type == RDS_IB_MR_8K_POOL)
324-
rds_ib_stats_inc(s_ib_rdma_mr_8k_pool_reuse);
325-
else
326-
rds_ib_stats_inc(s_ib_rdma_mr_1m_pool_reuse);
327323
spin_lock_bh(&pool->busy_lock);
328324
list_add(&ibmr->pool_list, &pool->busy_list);
329325
spin_unlock_bh(&pool->busy_lock);

0 commit comments

Comments
 (0)