From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bI5gh-0006jr-FZ for qemu-devel@nongnu.org; Tue, 28 Jun 2016 22:57:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bI5gc-0007wV-O6 for qemu-devel@nongnu.org; Tue, 28 Jun 2016 22:57:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44116) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bI5gc-0007wM-IY for qemu-devel@nongnu.org; Tue, 28 Jun 2016 22:57:10 -0400 Date: Tue, 28 Jun 2016 22:57:08 -0400 From: Jeff Cody Message-ID: <20160629025707.GD10140@localhost.localdomain> References: <1466672241-22485-1-git-send-email-xiecl.fnst@cn.fujitsu.com> <1466672241-22485-3-git-send-email-xiecl.fnst@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1466672241-22485-3-git-send-email-xiecl.fnst@cn.fujitsu.com> Subject: Re: [Qemu-devel] [PATCH v2 2/2] mirror: fix misleading comments List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Changlong Xie Cc: qemu devel , Stefan Hajnoczi , Fam Zheng , Max Reitz , Kevin Wolf , Paolo Bonzini , Eric Blake , Wen Congyang On Thu, Jun 23, 2016 at 04:57:21PM +0800, Changlong Xie wrote: > s/target bs/to_replace/, also we check to_replace bs is not > blocked in qmp_drive_mirror() not here > > Signed-off-by: Changlong Xie Reviewed-by: Jeff Cody > --- > block/mirror.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/block/mirror.c b/block/mirror.c > index a04ed9c..4420a15 100644 > --- a/block/mirror.c > +++ b/block/mirror.c > @@ -769,7 +769,7 @@ static void mirror_complete(BlockJob *job, Error **errp) > } > } > > - /* check the target bs is not blocked and block all operations on it */ > + /* block all operations on to_replace bs */ > if (s->replaces) { > AioContext *replace_aio_context; > > -- > 1.9.3 > > >