aboutsummaryrefslogtreecommitdiff
path: root/block.c
diff options
context:
space:
mode:
authorPavel Hrdina <phrdina@redhat.com>2012-08-09 12:44:48 +0200
committerKevin Wolf <kwolf@redhat.com>2012-09-12 15:50:09 +0200
commit9ca111544c64b5abed2e79cf52e19a8f227b347b (patch)
treefb5d2b7ab25fe0fdee607c090cc339960245e8f2 /block.c
parent514f21a5d4613e495adc2e2dd48f18091454efb8 (diff)
downloadqemu-9ca111544c64b5abed2e79cf52e19a8f227b347b.zip
qemu-9ca111544c64b5abed2e79cf52e19a8f227b347b.tar.gz
qemu-9ca111544c64b5abed2e79cf52e19a8f227b347b.tar.bz2
block: fix block tray status
The tray status should change also if you eject empty block device. Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block.c')
-rw-r--r--block.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/block.c b/block.c
index 470bdcc..c754353 100644
--- a/block.c
+++ b/block.c
@@ -897,10 +897,10 @@ void bdrv_close(BlockDriverState *bs)
bdrv_delete(bs->file);
bs->file = NULL;
}
-
- bdrv_dev_change_media_cb(bs, false);
}
+ bdrv_dev_change_media_cb(bs, false);
+
/*throttling disk I/O limits*/
if (bs->io_limits_enabled) {
bdrv_io_limits_disable(bs);