[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 3/4] block/qcow2: refactor qcow2_co_pwritev_p
From: |
Max Reitz |
Subject: |
Re: [Qemu-devel] [PATCH v2 3/4] block/qcow2: refactor qcow2_co_pwritev_part |
Date: |
Wed, 14 Aug 2019 17:55:05 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
On 30.07.19 16:18, Vladimir Sementsov-Ogievskiy wrote:
> Similarly to previous commit, prepare for parallelizing write-loop
> iterations.
>
> Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
> ---
> block/qcow2.c | 150 +++++++++++++++++++++++++++++---------------------
> 1 file changed, 88 insertions(+), 62 deletions(-)
>
> diff --git a/block/qcow2.c b/block/qcow2.c
> index 7fa71968b2..37766b8b7c 100644
> --- a/block/qcow2.c
> +++ b/block/qcow2.c
[...]
> @@ -2283,62 +2362,11 @@ static coroutine_fn int qcow2_co_pwritev_part(
[...]
> + ret = qcow2_co_pwritev_task(bs, cluster_offset, offset, cur_bytes,
> + qiov, bytes_done, l2meta);
You’re passing bytes_done as qiov_offset here. That is initialized to
0, so it ignores the qiov_offset given to qcow2_co_pwritev_part().
Max
signature.asc
Description: OpenPGP digital signature
- Re: [Qemu-devel] [PATCH v2 3/4] block/qcow2: refactor qcow2_co_pwritev_part,
Max Reitz <=