block: Drop bdrv_parent_cb_...() from bdrv_close()
authorMax Reitz <mreitz@redhat.com>
Tue, 17 May 2016 14:41:33 +0000 (16:41 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 25 May 2016 17:04:10 +0000 (19:04 +0200)
commit6b574e09b34a10dbf8d9fb58aeaad77493826b97
tree5b1df42bc2d799c8a1b8a5ac71eb335f7a93a602
parent30f55fb81ff65473d673e79ca7175672e859fa2f
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>
block.c