qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/2] block-copy: refactor copy_range handling


From: Vladimir Sementsov-Ogievskiy
Subject: Re: [PATCH 2/2] block-copy: refactor copy_range handling
Date: Wed, 2 Jun 2021 14:43:32 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2

02.06.2021 12:12, Stefan Hajnoczi wrote:
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 ...


That's better, thanks!

--
Best regards,
Vladimir



reply via email to

[Prev in Thread] Current Thread [Next in Thread]