mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06: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:
parent
7eaa8fb57d
commit
3d70ff53b6
18 changed files with 171 additions and 209 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue