Received: from eggs.gnu.org ([2001:4830:134:3::10]:35160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvovX-0003WY-JJ for qemu-devel@nongnu.org; Mon, 09 Nov 2015 11:04:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZvovW-0006Xk-1b for qemu-devel@nongnu.org; Mon, 09 Nov 2015 11:04:15 -0500 Date: Mon, 9 Nov 2015 17:03:59 +0100 From: Kevin Wolf Message-ID: <20151109160359.GB3621@noname.redhat.com> References: <1446663467-22485-1-git-send-email-mreitz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1446663467-22485-1-git-send-email-mreitz@redhat.com> Subject: Re: [Qemu-devel] [PATCH v6 for-2.6 00/15] 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, qemu-devel@nongnu.org, Markus Armbruster , Stefan Hajnoczi , Paolo Bonzini Am 04.11.2015 um 19:57 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 1-2, 5-6, 8-15: Reviewed-by: Kevin Wolf