Received: from eggs.gnu.org ([2001:4830:134:3::10]:42215) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YO3ur-0005m3-SZ for qemu-devel@nongnu.org; Wed, 18 Feb 2015 07:39:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YO3uo-0005jG-LY for qemu-devel@nongnu.org; Wed, 18 Feb 2015 07:39:45 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YO3uo-0005j0-EL for qemu-devel@nongnu.org; Wed, 18 Feb 2015 07:39:42 -0500 Date: Wed, 18 Feb 2015 13:39:38 +0100 From: Kevin Wolf Message-ID: <20150218123938.GD4996@noname.str.redhat.com> References: <1424208819-10306-1-git-send-email-mreitz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1424208819-10306-1-git-send-email-mreitz@redhat.com> Subject: Re: [Qemu-devel] [PATCH] block/vdi: Fix locking for parallel requests List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: Stefan Weil , qemu-devel@nongnu.org, Stefan Hajnoczi Am 17.02.2015 um 22:33 hat Max Reitz geschrieben: > Concurrently modifying the bmap is not a good idea; Why? I mean, the fact that this fixes something for you probably means that there really is some piece of local state that is invalidated by concurrent writes, but it's not obvious to me what it is. What could obviously happen is that metadata is written before the data is on the disk, but as we don't support backing files for VDI, this is irrelvant. (And if it were relevant, it stil wouldn't be fixed by your patch because the driver never flushes.) > this patch adds a > lock for it. See https://bugs.launchpad.net/qemu/+bug/1422307 for what > can go wrong without. > > Signed-off-by: Max Reitz Kevin