From: John Snow <jsnow@redhat.com>
To: qemu-devel@nongnu.org
Cc: Peter Lieven <pl@kamp.de>, peter.maydell@linaro.org, jsnow@redhat.com
Subject: [Qemu-devel] [PULL 6/6] ide: enable buffered requests for PIO read requests
Date: Tue, 17 Nov 2015 15:12:55 -0500 [thread overview]
Message-ID: <1447791175-22814-7-git-send-email-jsnow@redhat.com> (raw)
In-Reply-To: <1447791175-22814-1-git-send-email-jsnow@redhat.com>
From: Peter Lieven <pl@kamp.de>
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 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/ide/core.c b/hw/ide/core.c
index 1470737..da3baab 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)
--
2.4.3
next prev parent reply other threads:[~2015-11-17 20:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-17 20:12 [Qemu-devel] [PULL 0/6] Ide patches John Snow
2015-11-17 20:12 ` [Qemu-devel] [PULL 1/6] ide/atapi: make PIO read requests async John Snow
2015-11-17 20:12 ` [Qemu-devel] [PULL 2/6] block: add blk_abort_aio_request John Snow
2015-11-17 20:12 ` [Qemu-devel] [PULL 3/6] ide: add support for IDEBufferedRequest John Snow
2015-11-17 20:12 ` [Qemu-devel] [PULL 4/6] ide: orphan all buffered requests on DMA cancel John Snow
2015-11-17 20:12 ` [Qemu-devel] [PULL 5/6] ide: enable buffered requests for ATAPI devices John Snow
2015-11-17 20:12 ` John Snow [this message]
2015-11-18 12:47 ` [Qemu-devel] [PULL 0/6] Ide patches Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1447791175-22814-7-git-send-email-jsnow@redhat.com \
--to=jsnow@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=pl@kamp.de \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).