]> git.karo-electronics.de Git - karo-tx-linux.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>
Tue, 11 Oct 2011 19:00:54 +0000 (15:00 -0400)
commit680585607504bc82e7788250a490f1a091742d8d
tree0bbaa6fbcac007eacefcf05b6007e336cb5b6066
parentfcdddc894ea66519e3e666f0386ff26593417c31
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>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkback/blkback.c