diff options
author | Max Reitz <mreitz@redhat.com> | 2015-04-27 13:07:31 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2015-04-28 15:36:11 +0200 |
commit | 001c95b740b2ed3d8b486952f68b5f06e609f1f2 (patch) | |
tree | 0209428e0d4360bd4586937615369b49945a6fde /block | |
parent | 59fc5d844fe192494308d0f07507b712ec395129 (diff) |
block/mirror: Always call block_job_sleep_ns()
The mirror block job is trying to take a clever shortcut if delay_ns is
0 and skips block_job_sleep_ns() in that case. But that function must be
called in every block job iteration, because otherwise it is for example
impossible to pause the job.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/mirror.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/block/mirror.c b/block/mirror.c index d53e60e530..58f391a6d6 100644 --- a/block/mirror.c +++ b/block/mirror.c @@ -482,9 +482,6 @@ static void coroutine_fn mirror_run(void *opaque) continue; } else if (cnt != 0) { delay_ns = mirror_iteration(s); - if (delay_ns == 0) { - continue; - } } } |