Message ID | 98bbd2152406a5e2687e787c30ce8249c778de43.1443793122.git.berto@igalia.com |
---|---|
State | New |
Headers | show |
On Fri, Oct 02, 2015 at 05:26:12PM +0300, Alberto Garcia wrote: > Signed-off-by: Alberto Garcia <berto@igalia.com> > --- > hw/ide/core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
diff --git a/hw/ide/core.c b/hw/ide/core.c index 317406d..b559f1b 100644 --- a/hw/ide/core.c +++ b/hw/ide/core.c @@ -895,7 +895,7 @@ static void ide_sector_write(IDEState *s) qemu_iovec_init_external(&s->qiov, &s->iov, 1); block_acct_start(blk_get_stats(s->blk), &s->acct, - n * BDRV_SECTOR_SIZE, BLOCK_ACCT_READ); + n * BDRV_SECTOR_SIZE, BLOCK_ACCT_WRITE); s->pio_aiocb = blk_aio_writev(s->blk, sector_num, &s->qiov, n, ide_sector_write_cb, s); }
Signed-off-by: Alberto Garcia <berto@igalia.com> --- hw/ide/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)