mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 11:08:25 +00:00
job: Move completion and cancellation to Job
This moves the top-level job completion and cancellation functions from BlockJob to Job. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
@@ -869,7 +869,7 @@ static void run_block_job(BlockJob *job, Error **errp)
|
||||
} while (!job->ready && !job_is_completed(&job->job));
|
||||
|
||||
if (!job_is_completed(&job->job)) {
|
||||
ret = block_job_complete_sync(job, errp);
|
||||
ret = job_complete_sync(&job->job, errp);
|
||||
} else {
|
||||
ret = job->job.ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user