[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH 5/5] migration/block: compare only read blocks a
From: |
Juan Quintela |
Subject: |
Re: [Qemu-block] [PATCH 5/5] migration/block: compare only read blocks against the rate limiter |
Date: |
Tue, 20 Mar 2018 19:02:58 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Peter Lieven <address@hidden> wrote:
> only read_done blocks are in the queued to be flushed to the migration
> stream. submitted blocks are still in flight.
>
> Signed-off-by: Peter Lieven <address@hidden>
Reviewed-by: Juan Quintela <address@hidden>
> ---
> migration/block.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/migration/block.c b/migration/block.c
> index ce939e2..4e950c2 100644
> --- a/migration/block.c
> +++ b/migration/block.c
> @@ -773,8 +773,7 @@ static int block_save_iterate(QEMUFile *f, void *opaque)
>
> /* control the rate of transfer */
> blk_mig_lock();
> - while ((block_mig_state.submitted +
> - block_mig_state.read_done) * BLOCK_SIZE <
> + while (block_mig_state.read_done * BLOCK_SIZE <
> qemu_file_get_rate_limit(f) &&
> block_mig_state.submitted < MAX_PARALLEL_IO &&
> (block_mig_state.submitted + block_mig_state.read_done) <
- [Qemu-block] [PATCH 0/5] block migration fixes, Peter Lieven, 2018/03/08
- [Qemu-block] [PATCH 5/5] migration/block: compare only read blocks against the rate limiter, Peter Lieven, 2018/03/08
- Re: [Qemu-block] [PATCH 5/5] migration/block: compare only read blocks against the rate limiter,
Juan Quintela <=
- [Qemu-block] [PATCH 2/5] migration/block: reset dirty bitmap before read in bulk phase, Peter Lieven, 2018/03/08
- [Qemu-block] [PATCH 4/5] migration/block: limit the number of parallel I/O requests, Peter Lieven, 2018/03/08
- Re: [Qemu-block] [PATCH 4/5] migration/block: limit the number of parallel I/O requests, Juan Quintela, 2018/03/20
- Re: [Qemu-block] [Qemu-devel] [PATCH 4/5] migration/block: limit the number of parallel I/O requests, Dr. David Alan Gilbert, 2018/03/23
- [Qemu-block] [PATCH 3/5] migration/block: rename MAX_INFLIGHT_IO to MAX_IO_BUFFERS, Peter Lieven, 2018/03/08