[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 05/16] block: Convert bs->file to BdrvChild
From: |
Alberto Garcia |
Subject: |
Re: [Qemu-devel] [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
- Re: [Qemu-devel] [PATCH 13/16] block: Implement bdrv_append() without bdrv_swap(), (continued)
- [Qemu-devel] [PATCH 12/16] block: Introduce parents list, Kevin Wolf, 2015/09/17
- [Qemu-devel] [PATCH 15/16] block: Add and use bdrv_replace_in_backing_chain(), Kevin Wolf, 2015/09/17
- [Qemu-devel] [PATCH 05/16] block: Convert bs->file to BdrvChild, Kevin Wolf, 2015/09/17
- [Qemu-devel] [PATCH 16/16] block: Remove bdrv_swap(), Kevin Wolf, 2015/09/17
- Re: [Qemu-devel] [PATCH 00/16] block: Get rid of bdrv_swap(), Alberto Garcia, 2015/09/18
- Re: [Qemu-devel] [PATCH 00/16] block: Get rid of bdrv_swap(), Alberto Garcia, 2015/09/24