[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.