Re: [Qemu-block] [PATCH v6 12/13] block: Block "device IO" during bdrv_drain and bdrv_drain_all

2015-05-26 Thread Max Reitz
On 25.05.2015 04:48, Fam Zheng wrote: On Sat, 05/23 19:11, Max Reitz wrote: On 21.05.2015 08:43, Fam Zheng wrote: We don't want new requests from guest, so block the operation around the nested poll. It also avoids looping forever when iothread is submitting a lot of requests. Signed-off-by:

Re: [Qemu-block] [PATCH v6 12/13] block: Block "device IO" during bdrv_drain and bdrv_drain_all

2015-05-24 Thread Fam Zheng
On Sat, 05/23 19:11, Max Reitz wrote: > On 21.05.2015 08:43, Fam Zheng wrote: > >We don't want new requests from guest, so block the operation around the > >nested poll. > > > >It also avoids looping forever when iothread is submitting a lot of requests. > > > >Signed-off-by: Fam Zheng > >--- > >

Re: [Qemu-block] [PATCH v6 12/13] block: Block "device IO" during bdrv_drain and bdrv_drain_all

2015-05-23 Thread Max Reitz
On 21.05.2015 08:43, Fam Zheng wrote: We don't want new requests from guest, so block the operation around the nested poll. It also avoids looping forever when iothread is submitting a lot of requests. Signed-off-by: Fam Zheng --- block/io.c | 22 -- 1 file changed, 20 i

[Qemu-block] [PATCH v6 12/13] block: Block "device IO" during bdrv_drain and bdrv_drain_all

2015-05-20 Thread Fam Zheng
We don't want new requests from guest, so block the operation around the nested poll. It also avoids looping forever when iothread is submitting a lot of requests. Signed-off-by: Fam Zheng --- block/io.c | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a