mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
job: Add job_yield()
This moves block_job_yield() to the Job layer. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
parent
b3b5299d58
commit
198c49cc8d
7 changed files with 28 additions and 31 deletions
|
@ -444,7 +444,7 @@ static void coroutine_fn backup_run(void *opaque)
|
|||
while (!job_is_cancelled(&job->common.job)) {
|
||||
/* Yield until the job is cancelled. We just let our before_write
|
||||
* notify callback service CoW requests. */
|
||||
block_job_yield(&job->common);
|
||||
job_yield(&job->common.job);
|
||||
}
|
||||
} else if (job->sync_mode == MIRROR_SYNC_MODE_INCREMENTAL) {
|
||||
ret = backup_run_incremental(job);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue