diff options
author | Max Reitz <mreitz@redhat.com> | 2016-01-29 16:36:01 +0100 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2016-02-02 17:50:46 +0100 |
commit | c5acdc9ab4e6aa9b05e6242114479333b15d496b (patch) | |
tree | 195878d5665f08a42568e3f466a1f92187be22a2 /linux-headers | |
parent | e43f7f6f46fdf518de1bea6646455d91495a58c3 (diff) | |
download | qemu-c5acdc9ab4e6aa9b05e6242114479333b15d496b.zip qemu-c5acdc9ab4e6aa9b05e6242114479333b15d496b.tar.gz qemu-c5acdc9ab4e6aa9b05e6242114479333b15d496b.tar.bz2 |
block: Release named dirty bitmaps in bdrv_close()
bdrv_delete() is not very happy about deleting BlockDriverStates with
dirty bitmaps still attached to them. In the past, we got around that
very easily by relying on bdrv_close_all() bypassing bdrv_delete(), and
bdrv_close() simply ignoring that condition. We should fix that by
releasing all named dirty bitmaps in bdrv_close() (there should not be
any unnamed bitmaps left) and moving the assertion from bdrv_delete()
there.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'linux-headers')
0 files changed, 0 insertions, 0 deletions