[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [Qemu-devel] [RFC v4 16/21] blockjobs: add waiting stat
From: |
John Snow |
Subject: |
Re: [Qemu-block] [Qemu-devel] [RFC v4 16/21] blockjobs: add waiting status |
Date: |
Tue, 27 Feb 2018 15:50:18 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
On 02/27/2018 03:00 PM, Eric Blake wrote:
> On 02/23/2018 05:51 PM, John Snow wrote:
>> For jobs that are stuck waiting on others in a transaction, it would
>> be nice to know that they are no longer "running" in that sense, but
>> instead are waiting on other jobs in the transaction.
>>
>> Jobs that are "waiting" in this sense cannot be meaningfully altered
>> any longer as they have left their running loop. The only meaningful
>> user verb for jobs in this state is "cancel," which will cancel the
>> whole transaction, too.
>>
>> Transitions:
>> Running -> Waiting: Normal transition.
>> Ready -> Waiting: Normal transition.
>> Waiting -> Aborting: Transactional cancellation.
>> Waiting -> Concluded: Normal transition.
>>
>> Removed Transitions:
>> Running -> Concluded: Jobs must go to WAITING first.
>> Ready -> Concluded: Jobs must go to WAITING fisrt.
>
> s/fisrt/first/
>
>> +++ b/blockjob.c
>
>> @@ -3934,6 +3938,29 @@
>> 'offset': 'int',
>> 'speed' : 'int' } }
>> +##
>> +# @BLOCK_JOB_WAITING:
>> +#
>> +# Emitted when a block job that is part of a transction has stopped
>> work and is
>
> s/transction/transaction/
>
>> +# waiting for other jobs in the transaction to reach the same state.
>
> Is this event emitted only for 'new-style' transactions (old drivers
> will never see it, because they don't request new style), or always (old
> drivers will see, but presumably ignore, it)?
>
...! Actually, I meant to remove the WAITING *event* entirely, this is a
mistake.
It's purely an informational state that clients likely cannot make any
real use of, because regardless of old or new style, jobs will
transition automatically to "PENDING."
That said, old or new, the state is visible from query-block-jobs.
--js
- Re: [Qemu-block] [Qemu-devel] [RFC v4 19/21] blockjobs: Expose manual property, (continued)
Re: [Qemu-block] [RFC v4 19/21] blockjobs: Expose manual property, Kevin Wolf, 2018/02/28
[Qemu-block] [RFC v4 10/21] blockjobs: add NULL state, John Snow, 2018/02/23
[Qemu-block] [RFC v4 16/21] blockjobs: add waiting status, John Snow, 2018/02/23
[Qemu-block] [RFC v4 09/21] blockjobs: add CONCLUDED state, John Snow, 2018/02/23
[Qemu-block] [RFC v4 06/21] iotests: add pause_wait, John Snow, 2018/02/23
[Qemu-block] [RFC v4 05/21] blockjobs: add state transition table, John Snow, 2018/02/23