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: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Subject: Re: [Xen-devel] Fwd: xentop reporting zero written sectors
From: Andy Burns <xen.lists@xxxxxxxxxxx>
Date: Thu, 13 Oct 2011 22:10:31 +0100
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 13 Oct 2011 14:11:50 -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:cc:content-type :content-transfer-encoding; bh=xial9RLsPXvJ014jBFdxN1gkdzJH3llPHq618RyMKuw=; b=Xw0RqyMoIttiGQ5DHJ9lmZJYRkc3Fq5td6qdknwgMDwTMeUu4DorObAdVnfVXYDH8/ zKCoN/dwT1L3ufFwFqScc0zEfBf8zgyofctXBAdmzOdYSuOFxIVcPbEtEtcdZNlyX9my Az+XlXBEclZw8iBSJPjO7rT5wLDA7887NsJLY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20111010163129.GF28646@xxxxxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On 10 October 2011 17:31, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> wrote:

> I think this new "feature" below will fix it for you:
>
> diff --git a/drivers/block/xen-blkback/blkback.c 
> b/drivers/block/xen-blkback/blkback.c
> index 0bd7143..3e2ca68 100644
> --- a/drivers/block/xen-blkback/blkback.c
> +++ b/drivers/block/xen-blkback/blkback.c
> @@ -778,7 +778,7 @@ static int dispatch_rw_block_io(struct xen_blkif *blkif,
>
>        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;

What kernel version is that patch based on?  It won't apply on top of
3.1.0-rc9 for me, but looks like the starting line number is 685
rather than 778 in Fedora's source ... but even by tweaking it I can't
get rpmbuild to apply the patch :-(

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