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.
> >
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.
> >
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
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
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
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