]> git.proxmox.com Git - mirror_qemu.git/commit
job: Add job_transition_to_ready()
authorKevin Wolf <kwolf@redhat.com>
Wed, 25 Apr 2018 12:56:09 +0000 (14:56 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 23 May 2018 12:30:51 +0000 (14:30 +0200)
commit2e1795b58131427719c7cd11f8b9b6984b3f24f8
treed9e0c9842af8c71f9aa40c56599c880a88ca7535
parentdf956ae2014340bf7de0190edb1d09be55d9eadf
job: Add job_transition_to_ready()

The transition to the READY state was still performed in the BlockJob
layer, in the same function that sent the BLOCK_JOB_READY QMP event.

This patch brings the state transition to the Job layer and implements
the QMP event using a notifier called from the Job layer, like we
already do for other events related to state transitions.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
block/mirror.c
blockjob.c
include/block/blockjob.h
include/block/blockjob_int.h
include/qemu/job.h
job.c
tests/test-bdrv-drain.c
tests/test-blockjob.c