rds: Reintroduce statistics counting
Subsystems (4)
PATCH 1/1 rds: Reintroduce statistics counting
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.
--- net/rds/ib_recv.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
net/rds/ib_recv.c +4 -1
@@ -1015,8 +1015,10 @@ void rds_ib_recv_cqe_handler(struct rds_ib_connection *ic,if (rds_ib_ring_empty (&ic->i_recv_ring))rds_ib_stats_inc (s_ib_rx_ring_empty); -if (rds_ib_ring_low (&ic->i_recv_ring)) +if (rds_ib_ring_low (&ic->i_recv_ring)) {rds_ib_recv_refill (conn,0 ,GFP_NOWAIT ); +rds_ib_stats_inc (s_ib_rx_refill_from_cq); + } }int rds_ib_recv_path (struct rds_conn_path *cp)
@@ -1029,6 +1031,7 @@ int rds_ib_recv_path(struct rds_conn_path *cp)if (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;
Signature · 6 lines
2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 47 lines · Håkon Bugge
In commit
7e3f2952eeb1("rds: don't let RDS shutdown a connection while senders are present"), refilling the receive queue was removed fromrds_ib_recv(), along with the increment ofs_ib_rx_refill_from_thread.Commit
73ce4317bf98("RDS: make sure we post recv buffers") re-introduces filling the receive queue fromrds_ib_recv(), but does not add the statistics counter.rds_ib_recv()was later renamed tords_ib_recv_path().This commit reintroduces the statistics counting of
s_ib_rx_refill_from_threadands_ib_rx_refill_from_cq.Signed-off-by Håkon Bugge <[email protected]>Reviewed-by Knut Omang <[email protected]>Reviewed-by Wei Lin Guay <[email protected]>--- net/rds/ib_recv.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)net/rds/ib_recv.c +4
-1@@ -1015,8 +1015,10 @@ void rds_ib_recv_cqe_handler(struct rds_ib_connection *ic,if (rds_ib_ring_empty (&ic->i_recv_ring))rds_ib_stats_inc (s_ib_rx_ring_empty); -if (rds_ib_ring_low (&ic->i_recv_ring)) +if (rds_ib_ring_low (&ic->i_recv_ring)) {rds_ib_recv_refill (conn,0 ,GFP_NOWAIT ); +rds_ib_stats_inc (s_ib_rx_refill_from_cq); + } }int rds_ib_recv_path (struct rds_conn_path *cp)@@ -1029,6 +1031,7 @@ int rds_ib_recv_path(struct rds_conn_path *cp)if (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;Signature · 1 line
2.9.3
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 10 lines · Håkon Bugge
In commit
7e3f2952eeb1("rds: don't let RDS shutdown a connection while senders are present"), refilling the receive queue was removed fromrds_ib_recv(), along with the increment ofs_ib_rx_refill_from_thread.Commit
73ce4317bf98("RDS: make sure we post recv buffers") re-introduces filling the receive queue fromrds_ib_recv(), but does not add the statistics counter.rds_ib_recv()was later renamed tords_ib_recv_path().
Quoted 7 lines
This commit reintroduces the statistics counting of
s_ib_rx_refill_from_threadands_ib_rx_refill_from_cq.Signed-off-by Håkon Bugge <[email protected]>Reviewed-by Knut Omang <[email protected]>Reviewed-by Wei Lin Guay <[email protected]>---
Looks fine.
From: Håkon Bugge <[email protected]>
Date: Tue, 8 Aug 2017 11:13:32 +0200
Quoted 10 lines
In commit
7e3f2952eeb1("rds: don't let RDS shutdown a connection while senders are present"), refilling the receive queue was removed fromrds_ib_recv(), along with the increment ofs_ib_rx_refill_from_thread.Commit
73ce4317bf98("RDS: make sure we post recv buffers") re-introduces filling the receive queue fromrds_ib_recv(), but does not add the statistics counter.rds_ib_recv()was later renamed tords_ib_recv_path().
Quoted 6 lines
This commit reintroduces the statistics counting of
s_ib_rx_refill_from_threadands_ib_rx_refill_from_cq.Signed-off-by Håkon Bugge <[email protected]>Reviewed-by Knut Omang <[email protected]>Reviewed-by Wei Lin Guay <[email protected]>
Applied.