migration/block: Clean up BBs in block_save_complete()
commit362fdf170cb19301f70bc004e85dc82f83901afc
authorKevin Wolf <kwolf@redhat.com>
Mon, 22 May 2017 15:17:49 +0000 (22 17:17 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 9 Jun 2017 09:45:03 +0000 (9 11:45 +0200)
treed18099d73482d2a63583ff09685e8c71c4004478
parentf07fa4cbf0b16426dc5a03d4e13943143eaeb1ce
migration/block: Clean up BBs in block_save_complete()

We need to release any block migrations BlockBackends on the source
before successfully completing the migration because otherwise
inactivating the images will fail (inactivation only tolerates device
BBs).

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
migration/block.c