Re: [Qemu-devel] [PATCH 03/16] block: introduce bdrv_no_throttling_begin/end

2016-03-08 Thread Paolo Bonzini
On 09/03/2016 02:45, Fam Zheng wrote: >> > @@ -555,11 +574,7 @@ static int bdrv_prwv_co(BlockDriverState *bs, int64_t >> > offset, >> > * will not fire; so the I/O throttling function has to be disabled >> > here >> > * if it has been enabled. >> > */ >> > -if (bs->io_limi

Re: [Qemu-devel] [PATCH 03/16] block: introduce bdrv_no_throttling_begin/end

2016-03-08 Thread Fam Zheng
On Tue, 02/16 18:56, Paolo Bonzini wrote: > Extract the handling of throttling from bdrv_flush_io_queue. Looks good overall. Have two questions below. > > Signed-off-by: Paolo Bonzini > --- > block.c | 1 - > block/io.c| 56 > +---

[Qemu-devel] [PATCH 03/16] block: introduce bdrv_no_throttling_begin/end

2016-02-16 Thread Paolo Bonzini
Extract the handling of throttling from bdrv_flush_io_queue. Signed-off-by: Paolo Bonzini --- block.c | 1 - block/io.c| 56 +-- block/throttle-groups.c | 4 include/block/block_int.h | 6 ++--- 4 files chang