[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 2/4] mirror: Go through ready -> complete pro
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH v2 2/4] mirror: Go through ready -> complete process for 0 len image |
Date: |
Tue, 10 Jun 2014 12:56:12 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
On 06/08/2014 08:56 PM, Fam Zheng wrote:
> When mirroring or active committing a zero length image, BLOCK_JOB_READY
> is not reported now, instead the job completes because we short circuit
> the mirror job loop.
>
> This is inconsistent with non-zero length images, and only confuses
> management software.
>
> Let's do the same thing when seeing a 0-length image: report ready
> immediately; wait for block-job-cancel or block-job-complete; clear the
> cancel flag as existing non-zero image synced case (cancelled after
> ready); then jump to the exit.
>
> Reported-by: Eric Blake <address@hidden>
> Signed-off-by: Fam Zheng <address@hidden>
> ---
> block/mirror.c | 11 ++++++++++-
> 1 file changed, 10 insertions(+), 1 deletion(-)
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH v2 0/4] mirror: Fix behavior for zero byte image, Fam Zheng, 2014/06/08
- [Qemu-devel] [PATCH v2 1/4] blockjob: Add block_job_yield(), Fam Zheng, 2014/06/08
- [Qemu-devel] [PATCH v2 2/4] mirror: Go through ready -> complete process for 0 len image, Fam Zheng, 2014/06/08
- Re: [Qemu-devel] [PATCH v2 2/4] mirror: Go through ready -> complete process for 0 len image,
Eric Blake <=
- [Qemu-devel] [PATCH v2 3/4] qemu-iotests: Test BLOCK_JOB_READY event for 0Kb image active commit, Fam Zheng, 2014/06/08
- [Qemu-devel] [PATCH v2 4/4] qemu-iotests: Test 0-length image for mirror, Fam Zheng, 2014/06/08
- Re: [Qemu-devel] [PATCH v2 0/4] mirror: Fix behavior for zero byte image, Fam Zheng, 2014/06/24