• J
    blockjobs: add CONCLUDED state · e0cf0364
    John Snow 提交于
    add a new state "CONCLUDED" that identifies a job that has ceased all
    operations. The wording was chosen to avoid any phrasing that might
    imply success, error, or cancellation. The task has simply ceased all
    operation and can never again perform any work.
    
    ("finished", "done", and "completed" might all imply success.)
    
    Transitions:
    Running  -> Concluded: normal completion
    Ready    -> Concluded: normal completion
    Aborting -> Concluded: error and cancellations
    
    Verbs:
    None as of this commit. (a future commit adds 'dismiss')
    
                 +---------+
                 |UNDEFINED|
                 +--+------+
                    |
                 +--v----+
       +---------+CREATED|
       |         +--+----+
       |            |
       |         +--v----+     +------+
       +---------+RUNNING<----->PAUSED|
       |         +--+-+--+     +------+
       |            | |
       |            | +------------------+
       |            |                    |
       |         +--v--+       +-------+ |
       +---------+READY<------->STANDBY| |
       |         +--+--+       +-------+ |
       |            |                    |
    +--v-----+   +--v------+             |
    |ABORTING+--->CONCLUDED<-------------+
    +--------+   +---------+
    Signed-off-by: NJohn Snow <jsnow@redhat.com>
    Signed-off-by: NKevin Wolf <kwolf@redhat.com>
    e0cf0364
blockjob.c 30.7 KB