Re: [Qemu-devel] [PATCH v3] mirror: Confirm we're quiesced only if the job is paused or cancelled

2019-03-13 Thread Kevin Wolf
Am 08.03.2019 um 16:48 hat Sergio Lopez geschrieben: > While child_job_drained_begin() calls to job_pause(), the job doesn't > actually transition between states until it runs again and reaches a > pause point. This means bdrv_drained_begin() may return with some jobs > using the node still having

[Qemu-devel] [PATCH v3] mirror: Confirm we're quiesced only if the job is paused or cancelled

2019-03-08 Thread Sergio Lopez
While child_job_drained_begin() calls to job_pause(), the job doesn't actually transition between states until it runs again and reaches a pause point. This means bdrv_drained_begin() may return with some jobs using the node still having 'busy == true'. As a consequence, block_job_detach_aio_conte