On Thu, 24 May 2018 17:52:56 +0100 Stefan Hajnoczi <stefa...@redhat.com> wrote:
> On Thu, May 24, 2018 at 11:09:47AM +0200, Greg Kurz wrote: > > diff --git a/block.c b/block.c > > index 676e57f5623a..fc9379439883 100644 > > --- a/block.c > > +++ b/block.c > > @@ -2127,12 +2127,16 @@ BdrvChild *bdrv_attach_child(BlockDriverState > > *parent_bs, > > > > static void bdrv_detach_child(BdrvChild *child) > > { > > + BlockDriverState *child_bs = child->bs; > > + > > if (child->next.le_prev) { > > QLIST_REMOVE(child, next); > > child->next.le_prev = NULL; > > } > > This child->next modification makes me nervous. Please start the > drained region before modifying the graph. Ok, I'll send a v3, and Cc qemu-sta...@nongnu.org instead of sta...@vger.kernel.org this time :P
pgpVFbENaSZ67.pgp
Description: OpenPGP digital signature