Re: [Qemu-block] [PATCH v2 12/16] block/mirror: Distinguish active from passive ops

2018-02-28 Thread Max Reitz
On 2018-02-27 10:12, Fam Zheng wrote: > On Mon, 01/22 23:08, Max Reitz wrote: >> Currently, the mirror block job only knows passive operations. But once >> we introduce active writes, we need to distinguish between the two; for >> example, mirror_wait_for_free_in_flight_slot() should wait for a pa

Re: [Qemu-block] [PATCH v2 12/16] block/mirror: Distinguish active from passive ops

2018-02-27 Thread Fam Zheng
On Mon, 01/22 23:08, Max Reitz wrote: > Currently, the mirror block job only knows passive operations. But once > we introduce active writes, we need to distinguish between the two; for > example, mirror_wait_for_free_in_flight_slot() should wait for a passive > operation because active writes wil

[Qemu-block] [PATCH v2 12/16] block/mirror: Distinguish active from passive ops

2018-01-22 Thread Max Reitz
Currently, the mirror block job only knows passive operations. But once we introduce active writes, we need to distinguish between the two; for example, mirror_wait_for_free_in_flight_slot() should wait for a passive operation because active writes will not use the same in-flight slots. Signed-of