Received: from eggs.gnu.org ([2001:4830:134:3::10]:55969) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyvvY-0003UL-UX for qemu-devel@nongnu.org; Mon, 23 Jun 2014 00:32:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WyvvS-0005f4-PC for qemu-devel@nongnu.org; Mon, 23 Jun 2014 00:32:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:22360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyvvS-0005ev-HV for qemu-devel@nongnu.org; Mon, 23 Jun 2014 00:32:14 -0400 Date: Mon, 23 Jun 2014 12:32:30 +0800 From: Fam Zheng Message-ID: <20140623043230.GB5977@T430.nay.redhat.com> References: <1403208081-18247-2-git-send-email-benoit.canet@irqsave.net> <53A34460.8010302@redhat.com> <20140619202043.GA18306@irqsave.net> <20140620050106.GB15938@T430.redhat.com> <53A453AF.3@redhat.com> <20140621085358.GA11607@T430.redhat.com> <20140621104551.GA986@irqsave.net> <20140621151519.GA14173@T430> <20140621153911.GB2108@irqsave.net> <20140621154028.GC2108@irqsave.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20140621154028.GC2108@irqsave.net> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] block: Make op blocker recursive List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Beno=EEt?= Canet Cc: kwolf@redhat.com, jcody@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com On Sat, 06/21 17:40, Beno=EEt Canet wrote: > The Saturday 21 Jun 2014 =E0 17:39:11 (+0200), Beno=EEt Canet wrote : > > We still have the issue of unlocking the bottom BDS when a subtree is= detached > > from the graphs by a swap. (It does happen in my drive-mirror arbitra= ry node > > replacement series). > >=20 > > From my understanding the unlocking of the root BDS is done by drive_= mirror_complete > > while the mirror code tries to unref the orphaned subtree _before_ dr= ive_mirror_complete > > is called. >=20 > One fixe to my sentence: > s/drive_mirror_complete/block_job_complete/ >=20 >=20 > >=20 > > So the bottom BDS would be unrefed before being unlocked. I don't see a problem with that, we can do the unlock before unref the no= de if we want. Fam