diff mbox

xen-blkback: reset flush counter for log_stats

Message ID 20170730104033.13865-1-Valentin.Vidic@CARNet.hr (mailing list archive)
State New, archived
Headers show

Commit Message

Valentin Vidic July 30, 2017, 10:40 a.m. UTC
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 <Valentin.Vidic@CARNet.hr>
---
 drivers/block/xen-blkback/blkback.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Roger Pau Monne Aug. 1, 2017, 7:30 a.m. UTC | #1
On Sun, Jul 30, 2017 at 12:40:33PM +0200, Valentin Vidic wrote:
> 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 <Valentin.Vidic@CARNet.hr>

Acked-by: Roger Pau Monné <roger.pau@citrix.com>

Thanks.
diff mbox

Patch

diff --git a/drivers/block/xen-blkback/blkback.c b/drivers/block/xen-blkback/blkback.c
index fe7cd58c43d0..fe96219a533e 100644
--- a/drivers/block/xen-blkback/blkback.c
+++ b/drivers/block/xen-blkback/blkback.c
@@ -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;
 }