From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHc9H-0007kY-Np for qemu-devel@nongnu.org; Mon, 27 Jun 2016 15:24:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHc9D-00051b-19 for qemu-devel@nongnu.org; Mon, 27 Jun 2016 15:24:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHc9C-00051Q-Qw for qemu-devel@nongnu.org; Mon, 27 Jun 2016 15:24:42 -0400 From: John Snow Date: Mon, 27 Jun 2016 15:24:39 -0400 Message-Id: <1467055479-25381-2-git-send-email-jsnow@redhat.com> In-Reply-To: <1467055479-25381-1-git-send-email-jsnow@redhat.com> References: <1467055479-25381-1-git-send-email-jsnow@redhat.com> Subject: [Qemu-devel] [PULL 1/1] macio: Use blk_drain instead of blk_drain_all List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, jsnow@redhat.com, Fam Zheng From: Fam Zheng We only care about the associated backend, so blk_drain is more appropriate here. Signed-off-by: Fam Zheng Reviewed-by: Kevin Wolf Reviewed-by: John Snow Message-id: 20160612065603.21911-1-famz@redhat.com Signed-off-by: John Snow --- hw/ide/macio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ide/macio.c b/hw/ide/macio.c index fa57352..56cc506 100644 --- a/hw/ide/macio.c +++ b/hw/ide/macio.c @@ -406,7 +406,7 @@ static void pmac_ide_flush(DBDMA_io *io) IDEState *s = idebus_active_if(&m->bus); if (s->bus->dma->aiocb) { - blk_drain_all(); + blk_drain(s->blk); } } -- 2.4.11