Re: [Qemu-devel] [PATCH v2 1/4] blockjob: Add block_job_yield()

2014-06-10 Thread Eric Blake
On 06/08/2014 08:56 PM, Fam Zheng wrote: > This will unset busy flag and put coroutine to sleep, can be used to > wait for QMP complete/cancel. > > Signed-off-by: Fam Zheng > --- > blockjob.c | 14 ++ > include/block/blockjob.h | 8 > 2 files changed, 22 inser

[Qemu-devel] [PATCH v2 1/4] blockjob: Add block_job_yield()

2014-06-08 Thread Fam Zheng
This will unset busy flag and put coroutine to sleep, can be used to wait for QMP complete/cancel. Signed-off-by: Fam Zheng --- blockjob.c | 14 ++ include/block/blockjob.h | 8 2 files changed, 22 insertions(+) diff --git a/blockjob.c b/blockjob.c index 7d84