]> git.proxmox.com Git - mirror_qemu.git/commitdiff
ide: enable buffered requests for PIO read requests
authorPeter Lieven <pl@kamp.de>
Tue, 17 Nov 2015 20:06:39 +0000 (15:06 -0500)
committerJohn Snow <jsnow@redhat.com>
Tue, 17 Nov 2015 20:06:39 +0000 (15:06 -0500)
Signed-off-by: Peter Lieven <pl@kamp.de>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-id: 1447345846-15624-7-git-send-email-pl@kamp.de
Signed-off-by: John Snow <jsnow@redhat.com>
hw/ide/core.c

index 1470737e34dc87c241bb41184089e90546d0f996..da3baab1eb5b9e5790329c6b1b3a00aa42d65713 100644 (file)
@@ -679,8 +679,8 @@ static void ide_sector_read(IDEState *s)
 
     block_acct_start(blk_get_stats(s->blk), &s->acct,
                      n * BDRV_SECTOR_SIZE, BLOCK_ACCT_READ);
-    s->pio_aiocb = blk_aio_readv(s->blk, sector_num, &s->qiov, n,
-                                 ide_sector_read_cb, s);
+    s->pio_aiocb = ide_buffered_readv(s, sector_num, &s->qiov, n,
+                                      ide_sector_read_cb, s);
 }
 
 void dma_buf_commit(IDEState *s, uint32_t tx_bytes)