diff options
author | John Snow | 2018-03-10 09:27:43 +0100 |
---|---|---|
committer | Kevin Wolf | 2018-03-19 12:01:24 +0100 |
commit | 11b61fbc0d1a447849f36d76e0e1d05be2dfaad2 (patch) | |
tree | 93bb4e5cc3452c6bc62021b982506b2f0187d133 /block/trace-events | |
parent | blockjobs: add PENDING status and event (diff) | |
download | qemu-11b61fbc0d1a447849f36d76e0e1d05be2dfaad2.tar.gz qemu-11b61fbc0d1a447849f36d76e0e1d05be2dfaad2.tar.xz qemu-11b61fbc0d1a447849f36d76e0e1d05be2dfaad2.zip |
blockjobs: add block-job-finalize
Instead of automatically transitioning from PENDING to CONCLUDED, gate
the .prepare() and .commit() phases behind an explicit acknowledgement
provided by the QMP monitor if auto_finalize = false has been requested.
This allows us to perform graph changes in prepare and/or commit so that
graph changes do not occur autonomously without knowledge of the
controlling management layer.
Transactions that have reached the "PENDING" state together can all be
moved to invoke their finalization methods by issuing block_job_finalize
to any one job in the transaction.
Jobs in a transaction with mixed job->auto_finalize settings will all
remain stuck in the "PENDING" state, as if the entire transaction was
specified with auto_finalize = false. Jobs that specified
auto_finalize = true, however, will still not emit the PENDING event.
Signed-off-by: John Snow <jsnow@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/trace-events')
-rw-r--r-- | block/trace-events | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/trace-events b/block/trace-events index 1c6edb0b5a..f8c50b4063 100644 --- a/block/trace-events +++ b/block/trace-events @@ -53,6 +53,7 @@ qmp_block_job_cancel(void *job) "job %p" qmp_block_job_pause(void *job) "job %p" qmp_block_job_resume(void *job) "job %p" qmp_block_job_complete(void *job) "job %p" +qmp_block_job_finalize(void *job) "job %p" qmp_block_job_dismiss(void *job) "job %p" qmp_block_stream(void *bs, void *job) "bs %p job %p" |