[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 13/23] multifd: Make zstd use iov's
From: |
Dr. David Alan Gilbert |
Subject: |
Re: [PATCH v3 13/23] multifd: Make zstd use iov's |
Date: |
Mon, 29 Nov 2021 18:03:14 +0000 |
User-agent: |
Mutt/2.1.3 (2021-09-10) |
* Juan Quintela (quintela@redhat.com) wrote:
> Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
> ---
> migration/multifd-zstd.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/migration/multifd-zstd.c b/migration/multifd-zstd.c
> index 2d5b61106c..259277dc42 100644
> --- a/migration/multifd-zstd.c
> +++ b/migration/multifd-zstd.c
> @@ -154,6 +154,9 @@ static int zstd_send_prepare(MultiFDSendParams *p, Error
> **errp)
> return -1;
> }
> }
> + p->iov[p->iovs_num].iov_base = z->zbuff;
> + p->iov[p->iovs_num].iov_len = z->out.pos;
> + p->iovs_num++;
> p->next_packet_size = z->out.pos;
> p->flags |= MULTIFD_FLAG_ZSTD;
>
> @@ -173,10 +176,7 @@ static int zstd_send_prepare(MultiFDSendParams *p, Error
> **errp)
> */
> static int zstd_send_write(MultiFDSendParams *p, uint32_t used, Error **errp)
> {
> - struct zstd_data *z = p->data;
> -
> - return qio_channel_write_all(p->c, (void *)z->zbuff, p->next_packet_size,
> - errp);
> + return qio_channel_writev_all(p->c, p->iov, p->iovs_num, errp);
> }
>
> /**
> --
> 2.33.1
>
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
- [PATCH v3 09/23] multifd: Make zstd compression method not use iovs, (continued)
- [PATCH v3 09/23] multifd: Make zstd compression method not use iovs, Juan Quintela, 2021/11/24
- [PATCH v3 11/23] multifd: Move iov from pages to params, Juan Quintela, 2021/11/24
- [PATCH v3 12/23] multifd: Make zlib use iov's, Juan Quintela, 2021/11/24
- [PATCH v3 06/23] multifd: remove used parameter from send_prepare() method, Juan Quintela, 2021/11/24
- [PATCH v3 13/23] multifd: Make zstd use iov's, Juan Quintela, 2021/11/24
- Re: [PATCH v3 13/23] multifd: Make zstd use iov's,
Dr. David Alan Gilbert <=
- [PATCH v3 15/23] multifd: Use a single writev on the send side, Juan Quintela, 2021/11/24
- [PATCH v3 16/23] multifd: Unfold "used" variable by its value, Juan Quintela, 2021/11/24
- [PATCH v3 17/23] multifd: Use normal pages array on the send side, Juan Quintela, 2021/11/24
- [PATCH v3 14/23] multifd: Remove send_write() method, Juan Quintela, 2021/11/24
- [PATCH v3 18/23] multifd: Use normal pages array on the recv side, Juan Quintela, 2021/11/24