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

[Xen-changelog] [linux-2.6.18-xen] blkback: Fix st_wr_sect accounting by including write-barrier requests.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1202724329 0
# Node ID bda2d96f9e2817b2d5ae3c95feeba262eb8b5d14
# Parent  2276cd5e2341360bad83f2d45f75bfb02751f6d4
blkback: Fix st_wr_sect accounting by including write-barrier requests.
Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
---
 drivers/xen/blkback/blkback.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 2276cd5e2341 -r bda2d96f9e28 drivers/xen/blkback/blkback.c
--- a/drivers/xen/blkback/blkback.c     Mon Feb 11 09:55:55 2008 +0000
+++ b/drivers/xen/blkback/blkback.c     Mon Feb 11 10:05:29 2008 +0000
@@ -509,7 +509,7 @@ static void dispatch_rw_block_io(blkif_t
 
        if (operation == READ)
                blkif->st_rd_sect += preq.nr_sects;
-       else if (operation == WRITE)
+       else if (operation == WRITE || operation == WRITE_BARRIER)
                blkif->st_wr_sect += preq.nr_sects;
 
        return;

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


 


Rackspace

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