From: Stefan Hajnoczi <stefanha@redhat.com>
To: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Cc: kwolf@redhat.com, eesposit@redhat.com, qemu-block@nongnu.org,
qemu-devel@nongnu.org, mreitz@redhat.com, pbonzini@redhat.com,
jsnow@redhat.com
Subject: Re: [PATCH 2/2] block-copy: refactor copy_range handling
Date: Wed, 2 Jun 2021 10:12:59 +0100 [thread overview]
Message-ID: <YLdLm/j5ctTcOOEy@stefanha-x1.localdomain> (raw)
In-Reply-To: <20210528141628.44287-3-vsementsov@virtuozzo.com>
[-- Attachment #1: Type: text/plain, Size: 1022 bytes --]
On Fri, May 28, 2021 at 05:16:28PM +0300, Vladimir Sementsov-Ogievskiy wrote:
> @@ -183,6 +184,7 @@ static BlockCopyTask *block_copy_task_create(BlockCopyState *s,
> .call_state = call_state,
> .offset = offset,
> .bytes = bytes,
> + .copy_range = s->use_copy_range,
> };
> qemu_co_queue_init(&task->wait_queue);
> QLIST_INSERT_HEAD(&s->tasks, task, list);
> @@ -342,11 +344,17 @@ static coroutine_fn int block_copy_task_run(AioTaskPool *pool,
> *
> * No sync here: nor bitmap neighter intersecting requests handling, only copy.
> *
> + * @copy_range is in-out argument: if *copy_range is false, copy_range is not
s/is in-out argument/is an in-out argument/
> + * done. If *copy_range is true, copy_range attempt is done. If copy_range
s/copy_range attempt is done/copy_range is attempted/
> + * attempt failed, the function fallback to usual read+write and *copy_range is
If the copy_range attempt fails, the function falls back to the usual
read+write and ...
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2021-06-02 9:14 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-28 14:16 [PATCH 0/2] block-copy: small fix and refactor Vladimir Sementsov-Ogievskiy
2021-05-28 14:16 ` [PATCH 1/2] block-copy: fix block_copy_task_entry() progress update Vladimir Sementsov-Ogievskiy
2021-05-28 14:16 ` [PATCH 2/2] block-copy: refactor copy_range handling Vladimir Sementsov-Ogievskiy
2021-06-02 9:12 ` Stefan Hajnoczi [this message]
2021-06-02 11:43 ` Vladimir Sementsov-Ogievskiy
2021-06-02 9:13 ` [PATCH 0/2] block-copy: small fix and refactor Stefan Hajnoczi
2021-06-02 12:21 ` Kevin Wolf
2021-06-03 7:38 ` Paolo Bonzini
2021-06-07 15:10 ` Kevin Wolf
2021-06-07 15:16 ` Emanuele Giuseppe Esposito
2021-06-07 16:18 ` Vladimir Sementsov-Ogievskiy
2021-06-07 19:08 ` Emanuele Giuseppe Esposito
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=YLdLm/j5ctTcOOEy@stefanha-x1.localdomain \
--to=stefanha@redhat.com \
--cc=eesposit@redhat.com \
--cc=jsnow@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=vsementsov@virtuozzo.com \
/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).