]> Git Repo - qemu.git/blobdiff - job.c
Merge remote-tracking branch 'remotes/philmd/tags/kconfig-20210720' into staging
[qemu.git] / job.c
diff --git a/job.c b/job.c
index 4aff13d95ab4d202ccb03c3f81d889d3d4fa64b7..e7a5d288546416e5973d1e8ea326475ddea61e40 100644 (file)
--- a/job.c
+++ b/job.c
@@ -339,6 +339,8 @@ void *job_create(const char *job_id, const JobDriver *driver, JobTxn *txn,
     job->cb            = cb;
     job->opaque        = opaque;
 
+    progress_init(&job->progress);
+
     notifier_list_init(&job->on_finalize_cancelled);
     notifier_list_init(&job->on_finalize_completed);
     notifier_list_init(&job->on_pending);
@@ -382,6 +384,7 @@ void job_unref(Job *job)
 
         QLIST_REMOVE(job, job_list);
 
+        progress_destroy(&job->progress);
         error_free(job->err);
         g_free(job->id);
         g_free(job);
@@ -716,7 +719,7 @@ static int job_finalize_single(Job *job)
 static void job_cancel_async(Job *job, bool force)
 {
     if (job->driver->cancel) {
-        job->driver->cancel(job);
+        job->driver->cancel(job, force);
     }
     if (job->user_paused) {
         /* Do not call job_enter here, the caller will handle it.  */
This page took 0.024204 seconds and 4 git commands to generate.