qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v12 0/2] mirror: Improve zero write and discard
@ 2016-02-05  2:00 Fam Zheng
  2016-02-05  2:00 ` [Qemu-devel] [PATCH v12 1/2] mirror: Rewrite mirror_iteration Fam Zheng
  2016-02-05  2:00 ` [Qemu-devel] [PATCH v12 2/2] mirror: Add mirror_wait_for_io Fam Zheng
  0 siblings, 2 replies; 9+ messages in thread
From: Fam Zheng @ 2016-02-05  2:00 UTC (permalink / raw)
  To: qemu-devel; +Cc: Kevin Wolf, pbonzini, Jeff Cody, qemu-block, mreitz

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-02-15  4:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-05  2:00 [Qemu-devel] [PATCH v12 0/2] mirror: Improve zero write and discard Fam Zheng
2016-02-05  2:00 ` [Qemu-devel] [PATCH v12 1/2] mirror: Rewrite mirror_iteration Fam Zheng
2016-02-06 13:24   ` Max Reitz
2016-02-07 12:46     ` Fam Zheng
2016-02-08 12:54       ` Max Reitz
2016-02-15  2:19         ` Fam Zheng
2016-02-15  3:49           ` Jeff Cody
2016-02-15  4:31             ` Fam Zheng
2016-02-05  2:00 ` [Qemu-devel] [PATCH v12 2/2] mirror: Add mirror_wait_for_io Fam Zheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).