block: Fix early failure in multiwrite
authorKevin Wolf <kwolf@redhat.com>
Fri, 2 Jul 2010 12:01:21 +0000 (14:01 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 2 Jul 2010 13:44:12 +0000 (15:44 +0200)
commit20626c0b2b302312fc7099f0e62eba85597a3ec4
treec54263b14573c8033c6604c350532349bc26d8ec
parente30fb9528d881ba6d75aeb79f07b7118262c8d02
block: Fix early failure in multiwrite

bdrv_aio_writev may call the callback immediately (and it will commonly do so
in error cases). Current code doesn't consider this. For details see the
comment added by this patch.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c