Re: [Qemu-devel] [PATCH v5 11/13] block: Add blk_remove_all_bs()

2015-03-19 Thread Eric Blake
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

[Qemu-devel] [PATCH v5 11/13] block: Add blk_remove_all_bs()

2015-03-03 Thread Max Reitz
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