On 11.03.26 15:54, Fiona Ebner wrote:
> If s->replace_blocker was already set by an earlier invocation of
> mirror_complete(), then there will be an assertion failure when
> error_setg() is called for it a second time. The bdrv_ref() operation
> should only be done a single time too.
>
> I thought about using an early return with an error, but that might
> break existing users that (accidentally) issue duplicate
> 'job-complete' without using 'replaces'.
>
> A paused job does not accept the 'complete' verb, so using an
> externally throttled node was the best I could come up with for the
> test.
>
> Fiona Ebner (3):
> block/mirror: fix assertion failure upon duplicate complete for job
> using 'replaces'
Thanks, I’ve applied this patch 1 to my block branch (for rc0):
https://gitlab.com/hreitz/qemu/-/commits/block
Better to have the code in earlier, and add the test later.
Hanna