diff options
author | John Snow <jsnow@redhat.com> | 2018-03-10 03:27:36 -0500 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2018-03-19 12:01:24 +0100 |
commit | 75f710599f2c35bad1a724d0243f372d05cc07ed (patch) | |
tree | c87bc75d880f7916bc70586bb3ffd80cf4abebcd /block | |
parent | 3925cd3bc7bdc82b7889fd97e7cad52dfee5e8a6 (diff) | |
download | qemu-75f710599f2c35bad1a724d0243f372d05cc07ed.zip qemu-75f710599f2c35bad1a724d0243f372d05cc07ed.tar.gz qemu-75f710599f2c35bad1a724d0243f372d05cc07ed.tar.bz2 |
blockjobs: add block_job_dismiss
For jobs that have reached their CONCLUDED state, prior to having their
last reference put down (meaning jobs that have completed successfully,
unsuccessfully, or have been canceled), allow the user to dismiss the
job's lingering status report via block-job-dismiss.
This gives management APIs the chance to conclusively determine if a job
failed or succeeded, even if the event broadcast was missed.
Note: block_job_do_dismiss and block_job_decommission happen to do
exactly the same thing, but they're called from different semantic
contexts, so both aliases are kept to improve readability.
Note 2: Don't worry about the 0x04 flag definition for AUTO_DISMISS, she
has a friend coming in a future patch to fill the hole where 0x02 is.
Verbs:
Dismiss: operates on CONCLUDED jobs only.
Signed-off-by: John Snow <jsnow@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block')
-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 38e8b6d..7212f2a 100644 --- a/block/trace-events +++ b/block/trace-events @@ -52,6 +52,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_dismiss(void *job) "job %p" qmp_block_stream(void *bs, void *job) "bs %p job %p" # block/file-win32.c |