[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 02/21] ide: Account for write operations correctl
From: |
Alberto Garcia |
Subject: |
[Qemu-devel] [PATCH v3 02/21] ide: Account for write operations correctly |
Date: |
Thu, 22 Oct 2015 11:11:12 +0300 |
Signed-off-by: Alberto Garcia <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
---
hw/ide/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
}
--
2.6.1
- [Qemu-devel] [PATCH v3 00/21] Extended I/O accounting, Alberto Garcia, 2015/10/22
- [Qemu-devel] [PATCH v3 01/21] xen_disk: Account for flush operations, Alberto Garcia, 2015/10/22
- [Qemu-devel] [PATCH v3 07/21] block: Allow configuring whether to account failed and invalid ops, Alberto Garcia, 2015/10/22
- [Qemu-devel] [PATCH v3 08/21] block: Compute minimum, maximum and average I/O latencies, Alberto Garcia, 2015/10/22
- [Qemu-devel] [PATCH v3 02/21] ide: Account for write operations correctly,
Alberto Garcia <=
- [Qemu-devel] [PATCH v3 03/21] block: define 'clock_type' for the accounting code, Alberto Garcia, 2015/10/22
- [Qemu-devel] [PATCH v3 06/21] block: Add statistics for failed and invalid I/O operations, Alberto Garcia, 2015/10/22
- [Qemu-devel] [PATCH v3 05/21] block: Add idle_time_ns to BlockDeviceStats, Alberto Garcia, 2015/10/22
- [Qemu-devel] [PATCH v3 04/21] util: Infrastructure for computing recent averages, Alberto Garcia, 2015/10/22
- [Qemu-devel] [PATCH v3 09/21] block: Add average I/O queue depth to BlockDeviceTimedStats, Alberto Garcia, 2015/10/22
- [Qemu-devel] [PATCH v3 21/21] block: Update copyright of the accounting code, Alberto Garcia, 2015/10/22
- [Qemu-devel] [PATCH v3 12/21] block: Use QEMU_CLOCK_VIRTUAL for the accounting code in qtest mode, Alberto Garcia, 2015/10/22
- [Qemu-devel] [PATCH v3 15/21] virtio-blk: Account for failed and invalid operations, Alberto Garcia, 2015/10/22