block: Fix early failure in multiwrite
commit453f9a1652629e5805995b165be2e634c8487139
authorKevin Wolf <kwolf@redhat.com>
Fri, 2 Jul 2010 12:01:21 +0000 (2 14:01 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 2 Jul 2010 13:44:12 +0000 (2 15:44 +0200)
treec54263b14573c8033c6604c350532349bc26d8ec
parentc2abccecd93d5977460fdfdab19461ccfa09ae21
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