qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Fam Zheng <famz@redhat.com>
To: qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>,
	pbonzini@redhat.com, Jeff Cody <jcody@redhat.com>,
	qemu-block@nongnu.org, mreitz@redhat.com
Subject: [Qemu-devel] [PATCH v8 0/2] mirror: Improve zero write and discard
Date: Thu, 24 Dec 2015 11:15:12 +0800	[thread overview]
Message-ID: <1450926914-12509-1-git-send-email-famz@redhat.com> (raw)

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 | 362 +++++++++++++++++++++++++++++++++++----------------------
 trace-events   |   1 -
 2 files changed, 222 insertions(+), 141 deletions(-)

-- 
2.4.3

             reply	other threads:[~2015-12-24  3:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-24  3:15 Fam Zheng [this message]
2015-12-24  3:15 ` [Qemu-devel] [PATCH v8 1/2] mirror: Rewrite mirror_iteration Fam Zheng
2016-01-04 19:27   ` Max Reitz
2016-01-05  8:18     ` Fam Zheng
2015-12-24  3:15 ` [Qemu-devel] [PATCH v8 2/2] mirror: Add mirror_wait_for_io Fam Zheng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1450926914-12509-1-git-send-email-famz@redhat.com \
    --to=famz@redhat.com \
    --cc=jcody@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=mreitz@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).