Received: from eggs.gnu.org ([2001:4830:134:3::10]:41931) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRVhU-0006Iq-OF for qemu-devel@nongnu.org; Thu, 04 Feb 2016 21:00:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aRVhT-00015B-Th for qemu-devel@nongnu.org; Thu, 04 Feb 2016 21:00:44 -0500 From: Fam Zheng Date: Fri, 5 Feb 2016 10:00:28 +0800 Message-Id: <1454637630-10585-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH v12 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 v12: Treat target cluster size as BDRV_SECTOR_SIZE if bdrv_get_info failed or doesn't set bdi.cluster_size; v11: Rebase. The only difference is the "file" parameter of bdrv_get_block_status_above. Patch 1 rewrites mirror_iteration. Patch 2 is a small DRY cleaning up. The main benefit is copying unallocated sectors (both zeroed and discarded) doesn't go through the iov setup loop, as they don't need it. Fam Zheng (2): mirror: Rewrite mirror_iteration mirror: Add mirror_wait_for_io block/mirror.c | 353 +++++++++++++++++++++++++++------------------ tests/qemu-iotests/109.out | 80 +++++----- trace-events | 1 - 3 files changed, 252 insertions(+), 182 deletions(-) -- 2.4.3