diff options
author | Kevin Wolf <kwolf@redhat.com> | 2010-04-06 18:24:06 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2010-04-10 01:15:44 +0200 |
commit | ffac613ff988db0eed39f97ec0005eb6ffe2f638 (patch) | |
tree | 12fe4bd64f780c3513f5a16d76ea662cbe21a27f | |
parent | block: Fix multiwrite error handling (diff) | |
download | qemu-kvm-ffac613ff988db0eed39f97ec0005eb6ffe2f638.tar.gz qemu-kvm-ffac613ff988db0eed39f97ec0005eb6ffe2f638.tar.bz2 qemu-kvm-ffac613ff988db0eed39f97ec0005eb6ffe2f638.zip |
block: Fix error code in multiwrite for immediate failures
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
(cherry picked from commit 0f0b604b00851f2c7160b4195136c1fd27418088)
-rw-r--r-- | block.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1758,10 +1758,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 { |