Received: from eggs.gnu.org ([2001:4830:134:3::10]:34273) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCZTs-0000s9-RN for qemu-devel@nongnu.org; Mon, 13 Jun 2016 17:33:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCZTq-0007Qu-SK for qemu-devel@nongnu.org; Mon, 13 Jun 2016 17:33:11 -0400 References: <20160612065603.21911-1-famz@redhat.com> From: John Snow Message-ID: Date: Mon, 13 Jun 2016 17:33:03 -0400 MIME-Version: 1.0 In-Reply-To: <20160612065603.21911-1-famz@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] macio: Use blk_drain instead of blk_drain_all List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org On 06/12/2016 02:56 AM, Fam Zheng wrote: > We only care about the associated backend, so blk_drain is more > appropriate here. > > Signed-off-by: Fam Zheng > --- > 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 78c10a0..a8c7321 100644 > --- a/hw/ide/macio.c > +++ b/hw/ide/macio.c > @@ -400,7 +400,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); > } > } > > Reviewed-by: John Snow Shall I take this through my tree?