qemu-block
[Top][All Lists]
Advanced

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

Re: [Qemu-block] [PATCH 05/16] block: Convert bs->file to BdrvChild


From: Alberto Garcia
Subject: Re: [Qemu-block] [PATCH 05/16] block: Convert bs->file to BdrvChild
Date: Wed, 23 Sep 2015 16:54:11 +0200
User-agent: Notmuch/0.13.2 (http://notmuchmail.org) Emacs/23.2.1 (i486-pc-linux-gnu)

On Thu 17 Sep 2015 03:48:09 PM CEST, Kevin Wolf wrote:

> @@ -1929,6 +1925,11 @@ void bdrv_close(BlockDriverState *bs)
>              bdrv_unref(backing_hd);
>          }
>  
> +        if (bs->file != NULL) {
> +            bdrv_unref(bs->file->bs);
> +            bs->file = NULL;
> +        }
> +

With Max's suggestion of using bdrv_unref_child(bs->file) instead,

Reviewed-by: Alberto Garcia <address@hidden>

Berto



reply via email to

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