From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50541) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zw4eV-0000ET-NL for qemu-devel@nongnu.org; Tue, 10 Nov 2015 03:51:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zw4eU-0003UL-Vm for qemu-devel@nongnu.org; Tue, 10 Nov 2015 03:51:43 -0500 From: Fam Zheng Date: Tue, 10 Nov 2015 16:51:28 +0800 Message-Id: <1447145490-12314-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH v3 0/2] mirror: Improve zero write and discard List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , pbonzini@redhat.com, Jeff Cody , qemu-block@nongnu.org, mreitz@redhat.com The first patch adds a lock between bdrv_set_dirty{,_bitmap} and non-atomic (coroutine) readers, The second patch makes use of it and fixes mirror thin writing. Fam Zheng (2): block: Introduce coroutine lock to dirty bitmap mirror: Improve zero-write and discard with fragmented image block.c | 26 ++++++-- block/mirror.c | 160 ++++++++++++++++++++++++++++++++++++---------- include/block/block.h | 6 +- include/block/block_int.h | 4 +- 4 files changed, 156 insertions(+), 40 deletions(-) -- 2.4.3