From c0525fb576263edd7b9bca25fe7aecb0b4bc864f Mon Sep 17 00:00:00 2001 From: =?utf8?q?H=C3=A5kon=20Bugge?= Date: Tue, 8 Aug 2017 11:13:32 +0200 Subject: [PATCH] rds: Reintroduce statistics counting MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit In commit 7e3f2952eeb1 ("rds: don't let RDS shutdown a connection while senders are present"), refilling the receive queue was removed from rds_ib_recv(), along with the increment of s_ib_rx_refill_from_thread. Commit 73ce4317bf98 ("RDS: make sure we post recv buffers") re-introduces filling the receive queue from rds_ib_recv(), but does not add the statistics counter. rds_ib_recv() was later renamed to rds_ib_recv_path(). This commit reintroduces the statistics counting of s_ib_rx_refill_from_thread and s_ib_rx_refill_from_cq. Signed-off-by: HÃ¥kon Bugge Reviewed-by: Knut Omang Reviewed-by: Wei Lin Guay Reviewed-by: Shamir Rabinovitch Acked-by: Santosh Shilimkar Signed-off-by: David S. Miller (cherry-picked from upstream 05bfd7dbb53a10be4a3e7aebaeec04b558198d49) Conflicts: net/rds/ib_recv.c Orabug: 26717115 Reviewed-by: Avinash Repaka --- net/rds/ib_recv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/rds/ib_recv.c b/net/rds/ib_recv.c index 8b6b065433dd..03cc2119a300 100644 --- a/net/rds/ib_recv.c +++ b/net/rds/ib_recv.c @@ -1379,6 +1379,7 @@ void rds_ib_recv_cqe_handler(struct rds_ib_connection *ic, if (!rds_ib_srq_enabled) { rds_ib_ring_free(&ic->i_recv_ring, 1); rds_ib_recv_refill(conn, 0, GFP_NOWAIT); + rds_ib_stats_inc(s_ib_rx_refill_from_cq); } else { recv->r_ic = ic; recv->r_posted = 0; @@ -1510,6 +1511,7 @@ int rds_ib_recv_path(struct rds_conn_path *cp) if (!rds_ib_srq_enabled && rds_conn_up(conn)) { rds_ib_attempt_ack(ic); rds_ib_recv_refill(conn, 0, GFP_KERNEL); + rds_ib_stats_inc(s_ib_rx_refill_from_thread); } return ret; -- 2.50.1