]> Git Repo - qemu.git/commitdiff
ide: Account for write operations correctly
authorAlberto Garcia <[email protected]>
Wed, 28 Oct 2015 15:32:59 +0000 (17:32 +0200)
committerKevin Wolf <[email protected]>
Thu, 12 Nov 2015 15:22:45 +0000 (16:22 +0100)
Signed-off-by: Alberto Garcia <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Message-id: 2e71323c0875c2b66a8ae22229545e0c013af8d4.1446044837[email protected]
Signed-off-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
hw/ide/core.c

index 364ba21e0cd79c48bff90a452fec2b4d2838d0b1..35ba1ad4c50bc9d7e084c28026e0b302dded5a2f 100644 (file)
@@ -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);
 }
This page took 0.030053 seconds and 4 git commands to generate.