From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36579) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYikH-0002o4-Gi for qemu-devel@nongnu.org; Thu, 19 Mar 2015 18:16:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YYikC-0002ws-IJ for qemu-devel@nongnu.org; Thu, 19 Mar 2015 18:16:53 -0400 Message-ID: <550B4ACE.9080903@redhat.com> Date: Thu, 19 Mar 2015 16:16:46 -0600 From: Eric Blake MIME-Version: 1.0 References: <1425413591-31413-1-git-send-email-mreitz@redhat.com> <1425413591-31413-12-git-send-email-mreitz@redhat.com> In-Reply-To: <1425413591-31413-12-git-send-email-mreitz@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="65WNITuNLffukUJlow8kcuo5Lb70HnUdf" Subject: Re: [Qemu-devel] [PATCH v5 11/13] block: Add blk_remove_all_bs() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , qemu-block@nongnu.org Cc: Kevin Wolf , Fam Zheng , qemu-devel@nongnu.org, Markus Armbruster , Stefan Hajnoczi , Paolo Bonzini This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --65WNITuNLffukUJlow8kcuo5Lb70HnUdf Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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. >=20 > This patch adds a function for doing that, but does not yet incorporate= > it in bdrv_close_all(). >=20 > 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 --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --65WNITuNLffukUJlow8kcuo5Lb70HnUdf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJVC0rOAAoJEKeha0olJ0NqT5gH/j40KAXlCmIdHynjUyywY0jg YOMAZcEdpPEq6tsUilxE9G6wa9uNuqdig2Mas/tB0/zIun/hAgDB8iYk1MrW6f/n ZHFe6f/1976vDbJLN5/y8Wng9g1DpOCDwRuY0V5DdxxNlUfjX8jvLMCuKVC1lplJ /rlzDg3PqfmQCQd1QNh5uTx4dqPlf/EjrmoUyaL070C3vfcvYP6/St3nCQzm65xa 9TA4b1VATwJmKpeN8/jLwyUyajtQX03m566KroE2fYWJEfaLZnNVtS6ozgNfisaP rZjgmDVDQn+SFKedzQP9/s84yOABVQVoHMUZ0eXwZObFtEAE55wOBMn7j4zDqgc= =DpPZ -----END PGP SIGNATURE----- --65WNITuNLffukUJlow8kcuo5Lb70HnUdf--