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

v10: Fix and simplify mirror_cow_align. [Max]

v9: Fix the one bug Max found:
    "shrink *= chunk_sectors".

v8: Rebase onto master (didn't pick up Max's rev-by due to non-trivial code
    change).

    The conflict is around removed lines about "max_iov" and "IOV_MAX" due to
    commit 3515727f3, but this also reveals this series forgot that check. So
    this revision adds it back:
    - Two new fields in MirrorBlockJob are added to cache size info:
      target_cluster_sectors and max_iov.
    - mirror_align_cow compares nb_chunks and max_iov, and cut the tail
      appropriately.
    - The orphan trace point is removed from trace-events.

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             | 351 +++++++++++++++++++++++++++------------------
 tests/qemu-iotests/109.out |  80 +++++------
 trace-events               |   1 -
 3 files changed, 251 insertions(+), 181 deletions(-)

-- 
2.4.3

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

end of thread, other threads:[~2016-02-03  1:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-13  2:50 [Qemu-devel] [PATCH v10 0/2] mirror: Improve zero write and discard Fam Zheng
2016-01-13  2:50 ` [Qemu-devel] [PATCH v10 1/2] mirror: Rewrite mirror_iteration Fam Zheng
2016-01-14 16:22   ` Max Reitz
2016-02-02 17:20   ` Max Reitz
2016-02-03  1:47     ` Fam Zheng
2016-01-13  2:50 ` [Qemu-devel] [PATCH v10 2/2] mirror: Add mirror_wait_for_io Fam Zheng
2016-01-22  7:46 ` [Qemu-devel] [PATCH v10 0/2] mirror: Improve zero write and discard Fam Zheng
2016-02-02  0:17   ` Paolo Bonzini

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).