]> git.proxmox.com Git - mirror_qemu.git/blobdiff - block/backup.c
job: Add job_sleep_ns()
[mirror_qemu.git] / block / backup.c
index 7d9aad97490f9bf852a3b49a48ed0d395ebada0c..f3a4f7c8980285a525d875244042a2753936c5b6 100644 (file)
@@ -338,7 +338,7 @@ static bool coroutine_fn yield_and_check(BackupBlockJob *job)
      * return. Without a yield, the VM would not reboot. */
     delay_ns = block_job_ratelimit_get_delay(&job->common, job->bytes_read);
     job->bytes_read = 0;
-    block_job_sleep_ns(&job->common, delay_ns);
+    job_sleep_ns(&job->common.job, delay_ns);
 
     if (job_is_cancelled(&job->common.job)) {
         return true;