xen-blkback: reset flush counter for log_stats
Subsystems (2)
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
Signed-off-by Valentin Vidic <[email protected]>
--- drivers/block/xen-blkback/blkback.c | 1 + 1 file changed, 1 insertion(+)
drivers/block/xen-blkback/blkback.c +1 -0
@@ -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
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/1056Signed-off-by Valentin Vidic <[email protected]>
Acked-by Roger Pau Monné <[email protected]>
Thanks.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel