Skip to contentSkip to conversation

blkback's st_wr_sect not properly accounted for barriers?

PATCH Samuel Thibault 1 participant 1 message Feb 7, 2008 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

Hello,

It looks to me like the following patch is needed for proper accounting in st_wr_sect, isn't it?

drivers/xen/blkback/blkback.c +1 -1
diff -r 5c61cd349b20 drivers/xen/blkback/blkback.c
@@ -509,7 +509,7 @@
 
 	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;