Skip to contentSkip to conversation

xen-blkback: reset flush counter for log_stats

PATCH In review Valentin Vidic 2 participants 2 messages Jul 30, 2017 – Aug 1, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen-blkback: reset flush counter for log_stats

All the other counters get reset to 0 when printing stats, while the flush counter keeps incrementing:

[ 2118.107554] xen-blkback: (5.xvda-0): oo   0  |  rd 1748  |  wr    6 |  f 3424  |  ds    0 | pg:  161/1056
[ 2128.147524] xen-blkback: (5.xvda-0): oo   0  |  rd 5705  |  wr    9 |  f 3429  |  ds    0 | pg:  161/1056
[ 2138.179507] xen-blkback: (5.xvda-0): oo   0  |  rd  137  |  wr   16 |  f 3433  |  ds    0 | pg:  161/1056
[ 2148.187460] xen-blkback: (5.xvda-0): oo   0  |  rd    0  |  wr   25 |  f 3448  |  ds    0 | pg:  161/1056
---
 drivers/block/xen-blkback/blkback.c | 1 +
 1 file changed, 1 insertion(+)
drivers/block/xen-blkback/blkback.c +1 -0
index fe7cd58c43d0..fe96219a533e 100644
@@ -598,6 +598,7 @@ static void print_stats(struct xen_blkif_ring *ring)
 	ring->st_rd_req = 0;
 	ring->st_wr_req = 0;
 	ring->st_oo_req = 0;
+	ring->st_f_req  = 0;
 	ring->st_ds_req = 0;
 }
 
Signature · 7 lines
2.13.3


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Valentin Vidic

All the other counters get reset to 0 when printing stats, while the flush counter keeps incrementing:

[ 2118.107554] xen-blkback: (5.xvda-0): oo   0  |  rd 1748  |  wr    6 |  f 3424  |  ds    0 | pg:  161/1056
[ 2128.147524] xen-blkback: (5.xvda-0): oo   0  |  rd 5705  |  wr    9 |  f 3429  |  ds    0 | pg:  161/1056
[ 2138.179507] xen-blkback: (5.xvda-0): oo   0  |  rd  137  |  wr   16 |  f 3433  |  ds    0 | pg:  161/1056
[ 2148.187460] xen-blkback: (5.xvda-0): oo   0  |  rd    0  |  wr   25 |  f 3448  |  ds    0 | pg:  161/1056

Thanks.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel