mirror of
https://github.com/mii443/qemu.git
synced 2025-12-17 01:28:52 +00:00
block: Drop bdrv_parent_cb_...() from bdrv_close()
bdrv_close() now asserts that the BDS's refcount is 0, therefore it cannot have any parents and the bdrv_parent_cb_change_media() call is a no-op. Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
2
block.c
2
block.c
@@ -2117,8 +2117,6 @@ static void bdrv_close(BlockDriverState *bs)
|
|||||||
bdrv_release_named_dirty_bitmaps(bs);
|
bdrv_release_named_dirty_bitmaps(bs);
|
||||||
assert(QLIST_EMPTY(&bs->dirty_bitmaps));
|
assert(QLIST_EMPTY(&bs->dirty_bitmaps));
|
||||||
|
|
||||||
bdrv_parent_cb_change_media(bs, false);
|
|
||||||
|
|
||||||
if (bs->drv) {
|
if (bs->drv) {
|
||||||
BdrvChild *child, *next;
|
BdrvChild *child, *next;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user