[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH v5 11/13] block: Add blk_remove_all_bs()
From: |
Eric Blake |
Subject: |
Re: [Qemu-block] [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
signature.asc
Description: OpenPGP digital signature
- Re: [Qemu-block] [PATCH v5 05/13] block: Move BDS close notifiers into BB, (continued)
- [Qemu-block] [PATCH v5 11/13] block: Add blk_remove_all_bs(), Max Reitz, 2015/03/03
- Re: [Qemu-block] [PATCH v5 11/13] block: Add blk_remove_all_bs(),
Eric Blake <=
- [Qemu-block] [PATCH v5 09/13] block: Add list of all BlockDriverStates, Max Reitz, 2015/03/03
- [Qemu-block] [PATCH v5 12/13] block: Rewrite bdrv_close_all(), Max Reitz, 2015/03/03
- Re: [Qemu-block] [PATCH v5 00/13] block: Rework bdrv_close_all(), Kevin Wolf, 2015/03/04