Il 11/09/2012 16:57, Kevin Wolf ha scritto:
>> > Assert that write_compressed is never used with the dirty bitmap.
>> > Setting the bits early is wrong, because a coroutine might concurrently
>> > examine them and copy incomplete data from the source.
>> > 
>> > Signed-off-by: Paolo Bonzini <[email protected]>
> Looks good, but I think it should be documented at least that
> bdrv_get_next_dirty() hangs when it's called and there is no dirty block.

Since bdrv_get_next_dirty disappears soon, I'll just add an assertion.

Paolo

Reply via email to