]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/blkback: Report VBD_WSECT (wr_sect) properly.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 10 Oct 2011 16:33:21 +0000 (12:33 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 19 Oct 2011 20:31:29 +0000 (16:31 -0400)
commit200208e4c00a818dc1420b8f082b57c5f9105eb6
tree9b6a59e2534298a6cdcd507c2c10f6481bb48f46
parente65afcc958c01cd7ce0f82c3d32d62953165c36a
xen/blkback: Report VBD_WSECT (wr_sect) properly.

We did not increment the amount of sectors written to disk
b/c we tested for the == WRITE which is incorrect - as the
operations are more of WRITE_FLUSH, WRITE_ODIRECT. This patch
fixes it by doing a & WRITE check.

CC: stable@kernel.org
Reported-by: Andy Burns <xen.lists@burns.me.uk>
Suggested-by: Ian Campbell <Ian.Campbell@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkback/blkback.c