Re: [Qemu-devel] [PATCH 35/42] job: Add job_is_ready()

2018-05-14 Thread Max Reitz
On 2018-05-09 18:26, Kevin Wolf wrote: > Instead of having a 'bool ready' in BlockJob, add a function that > derives its value from the job status. > > At the same time, this fixes the behaviour to match what the QAPI > documentation promises for query-block-job: 'true if the job may be > complete

[Qemu-devel] [PATCH 35/42] job: Add job_is_ready()

2018-05-09 Thread Kevin Wolf
Instead of having a 'bool ready' in BlockJob, add a function that derives its value from the job status. At the same time, this fixes the behaviour to match what the QAPI documentation promises for query-block-job: 'true if the job may be completed'. When the ready flag was introduced in commit ef