Re: [Qemu-block] [PATCH v5 05/12] block: Introduce "drained begin/end" API

2015-10-21 Thread Fam Zheng
On Wed, 10/21 12:11, Jeff Cody wrote: > On Wed, Oct 21, 2015 at 10:06:42AM +0800, Fam Zheng wrote: > > The semantics is that after bdrv_drained_begin(bs), bs will not get new > > external > > requests until the matching bdrv_drained_end(bs). > > > > Signed-off-by: Fam Zheng > > --- > > block/io

Re: [Qemu-block] [PATCH v5 05/12] block: Introduce "drained begin/end" API

2015-10-21 Thread Jeff Cody
On Wed, Oct 21, 2015 at 10:06:42AM +0800, Fam Zheng wrote: > The semantics is that after bdrv_drained_begin(bs), bs will not get new > external > requests until the matching bdrv_drained_end(bs). > > Signed-off-by: Fam Zheng > --- > block/io.c| 17 + > include/bl

[Qemu-block] [PATCH v5 05/12] block: Introduce "drained begin/end" API

2015-10-20 Thread Fam Zheng
The semantics is that after bdrv_drained_begin(bs), bs will not get new external requests until the matching bdrv_drained_end(bs). Signed-off-by: Fam Zheng --- block/io.c| 17 + include/block/block.h | 21 + include/block/block_int.h | 2 +