Received: from eggs.gnu.org ([2001:4830:134:3::10]:50194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1cdq-0003Pm-G5 for qemu-devel@nongnu.org; Wed, 25 Nov 2015 11:10:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1cdp-0003eO-M1 for qemu-devel@nongnu.org; Wed, 25 Nov 2015 11:09:58 -0500 Date: Wed, 25 Nov 2015 17:09:50 +0100 From: Kevin Wolf Message-ID: <20151125160950.GG12581@noname.str.redhat.com> References: <1447108773-6836-1-git-send-email-mreitz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1447108773-6836-1-git-send-email-mreitz@redhat.com> Subject: Re: [Qemu-devel] [PATCH v7 for-2.6 00/24] block: Rework bdrv_close_all() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: Alberto Garcia , qemu-block@nongnu.org, John Snow , qemu-devel@nongnu.org, Markus Armbruster , Stefan Hajnoczi , Paolo Bonzini Am 09.11.2015 um 23:39 hat Max Reitz geschrieben: > Currently, bdrv_close_all() force-closes all BDSs with a BlockBackend, > which can lead to data corruption (see the iotest added in the final > patch of this series) and is most certainly very ugly. > > This series reworks bdrv_close_all() to instead eject the BDS trees from > all BlockBackends and then close the monitor-owned BDS trees, which are > the only BDSs without a BB. In effect, all BDSs are closed just by > getting closed automatically due to their reference count becoming 0. > > Note that the approach taken here leaks all BlockBackends. This does not > really matter, however, since qemu is about to exit anyway. Patches 4-11: Reviewed-by: Kevin Wolf