79c4324644
Change-Id: I2d302dda68298877c65c99147f5bf22186a59aac
38 lines
1.3 KiB
Diff
38 lines
1.3 KiB
Diff
From d8962af271345ae4d7880219a62abed76a0268e0 Mon Sep 17 00:00:00 2001
|
|
From: Emanuele Giuseppe Esposito <eesposit@redhat.com>
|
|
Date: Wed, 3 Nov 2021 12:21:55 -0400
|
|
Subject: [PATCH 1/6] job.c: add missing notifier initialization
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
It seems that on_idle list is not properly initialized like
|
|
the other notifiers.
|
|
|
|
Fixes: 34dc97b9a0e ("blockjob: Wake up BDS when job becomes idle")
|
|
Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
|
|
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
|
|
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
|
|
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
|
|
Signed-off-by: wanbo <wanbo13@huawei.com>
|
|
---
|
|
job.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/job.c b/job.c
|
|
index dbfa67bb0a..54db80df66 100644
|
|
--- a/job.c
|
|
+++ b/job.c
|
|
@@ -352,6 +352,7 @@ void *job_create(const char *job_id, const JobDriver *driver, JobTxn *txn,
|
|
notifier_list_init(&job->on_finalize_completed);
|
|
notifier_list_init(&job->on_pending);
|
|
notifier_list_init(&job->on_ready);
|
|
+ notifier_list_init(&job->on_idle);
|
|
|
|
job_state_transition(job, JOB_STATUS_CREATED);
|
|
aio_timer_init(qemu_get_aio_context(), &job->sleep_timer,
|
|
--
|
|
2.27.0
|
|
|