On Mon, Nov 23, 2015 at 05:31:33PM +0100, Juan Quintela wrote: > Wen Congyang <we...@cn.fujitsu.com> wrote: > > If we set migration speed in a very large value, block-migration will try > > to read > > all data to the memory. Because > > (block_mig_state.submitted + block_mig_state.read_done) * BLOCK_SIZE > > will be overflow, and it will be always less than rate limit. > > > > There is no need to read too many data into memory when the rate limit is > > very large. > > So limit the memory usage can fix the overflow problem. > > > > Signed-off-by: Wen Congyang <we...@cn.fujitsu.com> > > Reviewed-by: Juan Quintela <quint...@redhat.com> > > If no block layer maintainer objects, I will apply this to my tree. > > Later, Juan.
Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
signature.asc
Description: PGP signature