diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2014-03-21 13:55:18 +0100 |
---|---|---|
committer | Michael Roth <mdroth@linux.vnet.ibm.com> | 2014-06-25 15:26:23 -0500 |
commit | 8211eeb7d26915d99a1d6a7eb79d09e862784f4a (patch) | |
tree | 69855f10631322bb93be6c250f202c0099d34de3 /hw/net/virtio-net.c | |
parent | 0414abe04f9782404ef08179763bca5e26633177 (diff) |
mirror: fix throttling delay calculation
The throttling delay calculation was using an inaccurate sector count to
calculate the time to sleep. This broke rate-limiting for the block
mirror job.
Move the delay calculation into mirror_iteration() where we know how
many sectors were transferred. This lets us calculate an accurate delay
time.
Reported-by: Joaquim Barrera <jbarrera@ac.upc.edu>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit cc8c9d6c6f28e4e376a6561a2a31524fd069bc2d)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'hw/net/virtio-net.c')
0 files changed, 0 insertions, 0 deletions