On 03/03/2015 01:13 PM, Max Reitz wrote: > When bdrv_close_all() is called, instead of force-closing all root > BlockDriverStates, it is better to just drop the reference from all > BlockBackends and let them be closed automatically. This prevents BDS > from getting closed that are still referenced by other BDS, which may > result in loss of cached data. > > This patch adds a function for doing that, but does not yet incorporate > it in bdrv_close_all(). > > Signed-off-by: Max Reitz > --- > block/block-backend.c | 13 +++++++++++++ > include/sysemu/block-backend.h | 1 + > 2 files changed, 14 insertions(+) Reviewed-by: Eric Blake -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org