]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/commitdiff
blkback: Fix st_wr_sect accounting by including write-barrier requests.
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 11 Feb 2008 10:05:29 +0000 (10:05 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 11 Feb 2008 10:05:29 +0000 (10:05 +0000)
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
drivers/xen/blkback/blkback.c

index 7e704256297f750933b583a1ee5bbd6f6ba93ddc..c1e9e815ee489566b38d797142f3d75745dbd5ed 100644 (file)
@@ -509,7 +509,7 @@ static void dispatch_rw_block_io(blkif_t *blkif,
 
        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;