WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Fwd: xentop reporting zero written sectors

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Fwd: xentop reporting zero written sectors
From: Andy Burns <xen.lists@xxxxxxxxxxx>
Date: Fri, 14 Oct 2011 01:20:05 +0100
Delivery-date: Thu, 13 Oct 2011 17:21:09 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=4O8LI63XeT2Ygv1w5Kjb+9CwutI9dY5u0rrKIYXGcew=; b=xM/ioeB7i1InVFaU/f7IcqD+4r7cBr4HspQJ4dZkylZpo8Nxq/FEfFytpm78MBYG0u zZ3H2MSoFD1D+P5/JleRy/190QFA+GiEMe6j8f2vue3QiEMgWcg5Nq1B0/MV4TtFCm+p gs0ZLe1937fdN5vaWrvHP0D9piBWKnmQzu8p0=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CAE1-PReC7R0VkGErsaVf5OoPrQbXh03fH+kE3e6s8b6EEqL4gw@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <CAE1-PRdq9BWjTTHPPBPvESr-ULcdjHgPMTABcCO6+wCLJ1UYog@xxxxxxxxxxxxxx> <CAE1-PReA8E-kSif=BU=s-vzOqi-4F4LotxqofH7EEw+dYLtpUA@xxxxxxxxxxxxxx> <20111010163129.GF28646@xxxxxxxxxxxxxxxxx> <CAE1-PReC7R0VkGErsaVf5OoPrQbXh03fH+kE3e6s8b6EEqL4gw@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On 13 October 2011 22:10, Andy Burns <xen.lists@xxxxxxxxxxx> wrote:

> On 10 October 2011 17:31, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> 
> wrote:
>
>> I think this new "feature" below will fix it for you:
> What kernel version is that patch based on?

I did eventually build a kernel with a lightly tweaked version of that
patch, to allow for Fedora's patched vanilla 3.0 plus rc9 patches

my VBD_WSECT counters are now merricly clocking up, so feel free to add

Acked-by: Andy Burns <andy@xxxxxxxxx>

--- a/drivers/block/xen-blkback/blkback.c
--- b/drivers/block/xen-blkback/blkback.c
@@ -685,7 +685,7 @@

        if (operation == READ)
                blkif->st_rd_sect += preq.nr_sects;
-       else if (operation == WRITE || operation == WRITE_FLUSH)
+       else if (operation == WRITE_ODIRECT || operation == WRITE_FLUSH)
                blkif->st_wr_sect += preq.nr_sects;

        return 0;

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel