From patchwork Tue Nov 17 20:12:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Snow X-Patchwork-Id: 545765 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id DB8A114145C for ; Wed, 18 Nov 2015 07:13:36 +1100 (AEDT) Received: from localhost ([::1]:60503 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZymdC-0003Gj-Sf for incoming@patchwork.ozlabs.org; Tue, 17 Nov 2015 15:13:34 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zymcg-0002Nc-Rd for qemu-devel@nongnu.org; Tue, 17 Nov 2015 15:13:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zymcf-0002KQ-QI for qemu-devel@nongnu.org; Tue, 17 Nov 2015 15:13:02 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36644) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zymcf-0002KM-LC for qemu-devel@nongnu.org; Tue, 17 Nov 2015 15:13:01 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 3CD198E370; Tue, 17 Nov 2015 20:13:01 +0000 (UTC) Received: from scv.usersys.redhat.com (dhcp-17-163.bos.redhat.com [10.18.17.163]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tAHKCuLd016753; Tue, 17 Nov 2015 15:13:00 -0500 From: John Snow To: qemu-devel@nongnu.org Date: Tue, 17 Nov 2015 15:12:55 -0500 Message-Id: <1447791175-22814-7-git-send-email-jsnow@redhat.com> In-Reply-To: <1447791175-22814-1-git-send-email-jsnow@redhat.com> References: <1447791175-22814-1-git-send-email-jsnow@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Peter Lieven , peter.maydell@linaro.org, jsnow@redhat.com Subject: [Qemu-devel] [PULL 6/6] ide: enable buffered requests for PIO read requests X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Peter Lieven Signed-off-by: Peter Lieven Reviewed-by: Fam Zheng Message-id: 1447345846-15624-7-git-send-email-pl@kamp.de Signed-off-by: John Snow --- 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)