qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 23/25] block: add close notifiers


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 23/25] block: add close notifiers
Date: Fri, 19 Oct 2012 05:38:11 -0400 (EDT)

> > @@ -1098,12 +1106,13 @@ void bdrv_reopen_abort(BDRVReopenState 
> > *reopen_state)
> >  void bdrv_close(BlockDriverState *bs)
> >  {
> >      bdrv_flush(bs);
> > -    if (bs->drv) {
> > -        if (bs->job) {
> > -            block_job_cancel_sync(bs->job);
> > -        }
> > -        bdrv_drain_all();
> > +    if (bs->job) {
> > +        block_job_cancel_sync(bs->job);
> > +    }
> > +    bdrv_drain_all();
> 
> Dropping the bs->drv condition in a separate commit gives you a nice
> place to explain why it's fine: the commit message.  I figure it is,
> but it's not 100% obvious.

Will do, thanks.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]