qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH v5 11/13] block: Add blk_remove_all_bs()
Date: Thu, 19 Mar 2015 16:16:46 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

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 <address@hidden>
> ---
>  block/block-backend.c          | 13 +++++++++++++
>  include/sysemu/block-backend.h |  1 +
>  2 files changed, 14 insertions(+)

Reviewed-by: Eric Blake <address@hidden>

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]