[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 4/5] migration/block: compare only read blocks agains
From: |
Dr. David Alan Gilbert (git) |
Subject: |
[Qemu-devel] [PULL 4/5] migration/block: compare only read blocks against the rate limiter |
Date: |
Fri, 23 Mar 2018 20:23:43 +0000 |
From: Peter Lieven <address@hidden>
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>
Message-Id: <address@hidden>
Reviewed-by: Juan Quintela <address@hidden>
Signed-off-by: Dr. David Alan Gilbert <address@hidden>
---
migration/block.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/migration/block.c b/migration/block.c
index 03bbba61cb..4c04d937b1 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) <
--
2.14.3
- [Qemu-devel] [PULL 0/5] migration queue, Dr. David Alan Gilbert (git), 2018/03/23
- [Qemu-devel] [PULL 2/5] migration: Fix rate limiting issue on RDMA migration, Dr. David Alan Gilbert (git), 2018/03/23
- [Qemu-devel] [PULL 3/5] migration/block: limit the number of parallel I/O requests, Dr. David Alan Gilbert (git), 2018/03/23
- [Qemu-devel] [PULL 1/5] migration: convert socket server to QIONetListener, Dr. David Alan Gilbert (git), 2018/03/23
- [Qemu-devel] [PULL 4/5] migration/block: compare only read blocks against the rate limiter,
Dr. David Alan Gilbert (git) <=
- [Qemu-devel] [PULL 5/5] migration: Fix block migration flag case, Dr. David Alan Gilbert (git), 2018/03/23
- Re: [Qemu-devel] [PULL 0/5] migration queue, Peter Maydell, 2018/03/24