diff options
author | Pavel Hrdina <phrdina@redhat.com> | 2012-08-09 12:44:48 +0200 |
---|---|---|
committer | Michael Roth <mdroth@linux.vnet.ibm.com> | 2012-10-11 21:44:16 -0500 |
commit | 84a2ca9f903dffa785b499979375aaadb58f1958 (patch) | |
tree | 934ecec910bd4d7c366f7e1e95d229883d392663 /block.c | |
parent | 1c224f0ab3ee2807844527126546abece2bdfc4b (diff) | |
download | qemu-84a2ca9f903dffa785b499979375aaadb58f1958.tar.gz |
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>
(cherry picked from commit 9ca111544c64b5abed2e79cf52e19a8f227b347b)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.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); |