Received: from eggs.gnu.org ([2001:4830:134:3::10]:56168) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCd38-0006Kx-1b for qemu-devel@nongnu.org; Mon, 13 Jun 2016 21:21:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCd36-0004vn-1X for qemu-devel@nongnu.org; Mon, 13 Jun 2016 21:21:48 -0400 Date: Tue, 14 Jun 2016 09:21:34 +0800 From: Fam Zheng Message-ID: <20160614012134.GB26269@ad.usersys.redhat.com> References: <20160612065603.21911-1-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: John Snow Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org On Mon, 06/13 17:33, John Snow wrote: > > > 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? I think that MAINTAINERS says so. :) Fam