OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb6d3ca
)
block: Fix error code in multiwrite for immediate failures
author
Kevin Wolf
<kwolf@redhat.com>
Tue, 6 Apr 2010 16:24:06 +0000
(18:24 +0200)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Fri, 9 Apr 2010 22:39:33 +0000
(
00:39
+0200)
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
block.c
patch
|
blob
|
history
diff --git
a/block.c
b/block.c
index
06ed08a
..
1027ff7
100644
(file)
--- a/
block.c
+++ b/
block.c
@@
-1881,10
+1881,10
@@
int bdrv_aio_multiwrite(BlockDriverState *bs, BlockRequest *reqs, int num_reqs)
// submitted yet. Otherwise we'll wait for the submitted AIOs to
// complete and report the error in the callback.
if (mcb->num_requests == 0) {
- reqs[i].error = EIO;
+ reqs[i].error =
-
EIO;
goto fail;
} else {
- mcb->error = EIO;
+ mcb->error =
-
EIO;
break;
}
} else {