Received: from eggs.gnu.org ([2001:4830:134:3::10]:54047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDbaW-0001KV-6t for qemu-devel@nongnu.org; Thu, 16 Jun 2016 14:00:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDbaV-00024l-CZ for qemu-devel@nongnu.org; Thu, 16 Jun 2016 14:00:20 -0400 Sender: Paolo Bonzini References: <1466060287-31514-1-git-send-email-den@openvz.org> From: Paolo Bonzini Message-ID: <66dc91cd-b6b4-e9d2-37e7-6c02da37e5be@redhat.com> Date: Thu, 16 Jun 2016 20:00:02 +0200 MIME-Version: 1.0 In-Reply-To: <1466060287-31514-1-git-send-email-den@openvz.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 0/3] potentially broken drive-mirror/drive-backup in bdrv_co_discard List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Denis V. Lunev" , qemu-devel@nongnu.org, qemu-block@nongnu.org Cc: Kevin Wolf , Vladimir Sementsov-Ogievskiy , Fam Zheng , Max Reitz , Stefan Hajnoczi On 16/06/2016 08:58, Denis V. Lunev wrote: > Actually I have found this problem running iotest 132 for active async > mirror I have sent yesturday. Anyway, the problem is actual for current > backup/mirror implementation. > > bdrv_co_discard must mark areas dirty after writing zeroes, it must call > before_write_notifier chain to push underlying data to backup and it also > must properly fill tracked request information. > > Signed-off-by: Denis V. Lunev > CC: Vladimir Sementsov-Ogievskiy > CC: Stefan Hajnoczi > CC: Fam Zheng > CC: Kevin Wolf > CC: Max Reitz Three good catches! Thanks for these patches. I think 2 and 3 should be Cced to qemu-stable too. Reviewed-by: Paolo Bonzini Paolo