diff options
author | Peter Lieven <pl@kamp.de> | 2015-11-17 15:06:39 -0500 |
---|---|---|
committer | John Snow <jsnow@redhat.com> | 2015-11-17 15:06:39 -0500 |
commit | d66a8fa83b00b3b3d631a0e28cdce8c9b5698822 (patch) | |
tree | f31b1d170316bf3826633fcb27f7da9096d9b8fd /hw/ide | |
parent | 02506b20b6609ed4ecb09de9900ba9f1dd20b205 (diff) |
ide: enable buffered requests for PIO read requests
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>
Diffstat (limited to 'hw/ide')
-rw-r--r-- | hw/ide/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/ide/core.c b/hw/ide/core.c index 1470737e34..da3baab1eb 100644 --- a/hw/ide/core.c +++ b/hw/ide/core.c @@ -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) |