From patchwork Sun Jul 30 10:40:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Valentin Vidic X-Patchwork-Id: 9870409 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 326F060353 for ; Sun, 30 Jul 2017 10:43:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1872728479 for ; Sun, 30 Jul 2017 10:43:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0D6AD285D4; Sun, 30 Jul 2017 10:43:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E8FB928479 for ; Sun, 30 Jul 2017 10:43:36 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dbleg-0004tR-2H; Sun, 30 Jul 2017 10:41:02 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dblee-0004tL-SJ for xen-devel@lists.xenproject.org; Sun, 30 Jul 2017 10:41:00 +0000 Received: from [85.158.143.35] by server-6.bemta-6.messagelabs.com id 42/59-03937-CB7BD795; Sun, 30 Jul 2017 10:41:00 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpkkeJIrShJLcpLzFFi42JZaFrNprt7e22 kwZZrihbft0xmcmD0OPzhCksAYxRrZl5SfkUCa0b7grCCYxwVSw78YWpgvM7WxcjJISTQyiQx 77cWhF0hMe3bXhYQm01AX2Juzw0gm4tDRGAio8S+rQvZQRLMAroSs78eBbNZBFQlDiztYOxi5 ODgFbCV2LxCGiQsISAvMbF3GiOErSkxc9M1FpASCQEviVnbPCHCfBIXX/xggrCLJM7OucEKUi IsYC+xcaohRNhBYtap92wTGPkWMDKsYlQvTi0qSy3SNddLKspMzyjJTczM0TU0MNPLTS0uTkx PzUlMKtZLzs/dxAgMDgYg2ME487L/IUZJDiYlUd513LWRQnxJ+SmVGYnFGfFFpTmpxYcYZTg4 lCR4fbcB5QSLUtNTK9Iyc4BhCpOW4OBREuG9CZLmLS5IzC3OTIdInWLU5Xg14f83JiGWvPy8V Clx3kyQIgGQoozSPLgRsJi5xCgrJczLCHSUEE9BalFuZgmq/CtGcQ5GJWHeMpApPJl5JXCbXg EdwQR0hGQp2BEliQgpqQbG+vqd6XsefChou+PFv02sR+5VRaq296G41qzyL4U5pxRtOy7c6+6 0KPBOdWXVuz9x9vc5t/v3BxZluseW3lJkjRayMtpyyNL+9tK9Fj+1DCRWNW/elhdReSDN/mTK HuMvrYzCHRfmhc/XP3OqzKNH5U5Ol/+82QUGkz7rlOnt7uqq8sjbm6DEUpyRaKjFXFScCAAj8 FH7lAIAAA== X-Env-Sender: Valentin.Vidic@CARNet.hr X-Msg-Ref: server-16.tower-21.messagelabs.com!1501411259!63650907!1 X-Originating-IP: [161.53.123.6] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.25; banners=-,-,- X-VirusChecked: Checked Received: (qmail 19824 invoked from network); 30 Jul 2017 10:40:59 -0000 Received: from mail.carnet.hr (HELO mail.carnet.hr) (161.53.123.6) by server-16.tower-21.messagelabs.com with DHE-RSA-AES128-SHA encrypted SMTP; 30 Jul 2017 10:40:59 -0000 Received: from [2001:b68:ff:12::131] (port=52058 helo=gavran.carpriv.carnet.hr) by mail.carnet.hr with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1dbleY-00033U-V7; Sun, 30 Jul 2017 12:40:55 +0200 Received: by gavran.carpriv.carnet.hr (Postfix, from userid 1000) id AAB1325450; Sun, 30 Jul 2017 12:40:54 +0200 (CEST) From: Valentin Vidic To: Konrad Rzeszutek Wilk , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , xen-devel@lists.xenproject.org Date: Sun, 30 Jul 2017 12:40:33 +0200 Message-Id: <20170730104033.13865-1-Valentin.Vidic@CARNet.hr> X-Mailer: git-send-email 2.13.3 X-SA-Exim-Connect-IP: 2001:b68:ff:12::131 X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) Cc: Valentin Vidic Subject: [Xen-devel] [PATCH] xen-blkback: reset flush counter for log_stats X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Roger Pau Monné --- drivers/block/xen-blkback/blkback.c | 1 + 1 file changed, 1 insertion(+) 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; }