diff mbox

[v2,for-2.7,8/8] block: Drop bdrv_parent_cb_...() from bdrv_close()

Message ID 1459965434-21531-9-git-send-email-mreitz@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Max Reitz April 6, 2016, 5:57 p.m. UTC
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>
---
 block.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Kevin Wolf April 7, 2016, 12:40 p.m. UTC | #1
Am 06.04.2016 um 19:57 hat Max Reitz geschrieben:
> 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>
diff mbox

Patch

diff --git a/block.c b/block.c
index 963abcc..7d7fd89 100644
--- a/block.c
+++ b/block.c
@@ -2113,8 +2113,6 @@  static void bdrv_close(BlockDriverState *bs)
     bdrv_release_named_dirty_bitmaps(bs);
     assert(QLIST_EMPTY(&bs->dirty_bitmaps));
 
-    bdrv_parent_cb_change_media(bs, false);
-
     if (bs->drv) {
         BdrvChild *child, *next;