diff options
author | Pavel Hrdina <phrdina@redhat.com> | 2012-08-09 12:44:48 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-09-12 15:50:09 +0200 |
commit | 9ca111544c64b5abed2e79cf52e19a8f227b347b (patch) | |
tree | fb5d2b7ab25fe0fdee607c090cc339960245e8f2 /block.c | |
parent | 514f21a5d4613e495adc2e2dd48f18091454efb8 (diff) | |
download | qemu-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |