Re: [Qemu-devel] [PATCH v2] block: Use bdrv_unref_child() for all children in bdrv_close()

2019-05-09 Thread Max Reitz
On 08.05.19 17:51, Alberto Garcia wrote: > bdrv_unref_child() does the following things: > > - Updates the child->bs->inherits_from pointer. > - Calls bdrv_detach_child() to remove the BdrvChild from bs->children. > - Calls bdrv_unref() to unref the child BlockDriverState. > > When bdrv_unr

[Qemu-devel] [PATCH v2] block: Use bdrv_unref_child() for all children in bdrv_close()

2019-05-08 Thread Alberto Garcia
bdrv_unref_child() does the following things: - Updates the child->bs->inherits_from pointer. - Calls bdrv_detach_child() to remove the BdrvChild from bs->children. - Calls bdrv_unref() to unref the child BlockDriverState. When bdrv_unref_child() was introduced in commit 33a604075c it was n