Skip to content

Commit 252f409

Browse files
esposemVladimir Sementsov-Ogievskiy
authored andcommitted
job.c: add missing notifier initialization
It seems that on_idle list is not properly initialized like the other notifiers. Fixes: 34dc97b ("blockjob: Wake up BDS when job becomes idle") Signed-off-by: Emanuele Giuseppe Esposito <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Reviewed-by: Stefan Hajnoczi <[email protected]> Reviewed-by: Vladimir Sementsov-Ogievskiy <[email protected]> Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]>
1 parent 89f3bfa commit 252f409

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

job.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ void *job_create(const char *job_id, const JobDriver *driver, JobTxn *txn,
352352
notifier_list_init(&job->on_finalize_completed);
353353
notifier_list_init(&job->on_pending);
354354
notifier_list_init(&job->on_ready);
355+
notifier_list_init(&job->on_idle);
355356

356357
job_state_transition(job, JOB_STATUS_CREATED);
357358
aio_timer_init(qemu_get_aio_context(), &job->sleep_timer,

0 commit comments

Comments
 (0)