Re: [Qemu-devel] [PATCH v3 2/2] block: disable I/O throttling on sync api

2012-04-02 Thread Stefan Hajnoczi
On Sat, Mar 31, 2012 at 08:07:25PM +0800, Zhi Yong Wu wrote: > On Fri, Mar 30, 2012 at 6:29 PM, Stefan Hajnoczi wrote: > > On Fri, Mar 30, 2012 at 9:50 AM,   wrote: > >> +     * When all sync I/O drivers are converted to async I/O, it will be > >> restored > >> +     * to the original state. > >

Re: [Qemu-devel] [PATCH v3 2/2] block: disable I/O throttling on sync api

2012-04-02 Thread Stefan Hajnoczi
On Sat, Mar 31, 2012 at 08:09:46PM +0800, Zhi Yong Wu wrote: > On Fri, Mar 30, 2012 at 6:29 PM, Stefan Hajnoczi wrote: > > On Fri, Mar 30, 2012 at 9:50 AM,   wrote: > >> +     * When all sync I/O drivers are converted to async I/O, it will be > >> restored > >> +     * to the original state. > >

Re: [Qemu-devel] [PATCH v3 2/2] block: disable I/O throttling on sync api

2012-03-31 Thread Zhi Yong Wu
On Fri, Mar 30, 2012 at 6:29 PM, Stefan Hajnoczi wrote: > On Fri, Mar 30, 2012 at 9:50 AM,   wrote: >> +     * When all sync I/O drivers are converted to async I/O, it will be >> restored >> +     * to the original state. > > The problem here is that guess_disk_lchs() uses bdrv_read(), not > whet

Re: [Qemu-devel] [PATCH v3 2/2] block: disable I/O throttling on sync api

2012-03-31 Thread Zhi Yong Wu
On Fri, Mar 30, 2012 at 6:29 PM, Stefan Hajnoczi wrote: > On Fri, Mar 30, 2012 at 9:50 AM,   wrote: >> +     * When all sync I/O drivers are converted to async I/O, it will be >> restored >> +     * to the original state. > > The problem here is that guess_disk_lchs() uses bdrv_read(), not > whet

Re: [Qemu-devel] [PATCH v3 2/2] block: disable I/O throttling on sync api

2012-03-30 Thread Stefan Hajnoczi
On Fri, Mar 30, 2012 at 9:50 AM, wrote: > +     * When all sync I/O drivers are converted to async I/O, it will be > restored > +     * to the original state. The problem here is that guess_disk_lchs() uses bdrv_read(), not whether device emulation uses sync or async I/O. Converting devices to

[Qemu-devel] [PATCH v3 2/2] block: disable I/O throttling on sync api

2012-03-30 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- block.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index 1fbf4dd..6de6f89 100644 --- a/block.c +++ b/block.c @@ -1477,6 +1477,17 @@ static int b