Re: [Qemu-devel] [PATCH 1/2] mirror: Rewrite mirror_iteration

2015-11-20 Thread Fam Zheng
On Wed, 11/18 11:38, Paolo Bonzini wrote: > > > On 17/11/2015 12:41, Fam Zheng wrote: > > +/* Wait for I/O to this cluster (from a previous iteration) to be > > + * done.*/ > > +while (test_bit(next_chunk, s->in_flight_bitmap)) { > > +trace_mirror_yield_in_flig

Re: [Qemu-devel] [PATCH 1/2] mirror: Rewrite mirror_iteration

2015-11-18 Thread Paolo Bonzini
On 17/11/2015 12:41, Fam Zheng wrote: > +/* Wait for I/O to this cluster (from a previous iteration) to be > + * done.*/ > +while (test_bit(next_chunk, s->in_flight_bitmap)) { > +trace_mirror_yield_in_flight(s, next_sector, s->in_flight); > +s->wait