Received: from eggs.gnu.org ([2001:4830:134:3::10]:40633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aP9MV-0000QV-Jc for qemu-devel@nongnu.org; Fri, 29 Jan 2016 08:45:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aP9MU-0007yw-Q6 for qemu-devel@nongnu.org; Fri, 29 Jan 2016 08:45:19 -0500 Date: Fri, 29 Jan 2016 14:45:11 +0100 From: Kevin Wolf Message-ID: <20160129134511.GB4356@noname.redhat.com> References: <1453917600-2663-1-git-send-email-mreitz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1453917600-2663-1-git-send-email-mreitz@redhat.com> Subject: Re: [Qemu-devel] [PATCH v8 00/16] 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, Paolo Bonzini , Fam Zheng , John Snow Am 27.01.2016 um 18:59 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. Apart from patch 5: Reviewed-by: Kevin Wolf