block: Clean up after deleting BHs
commit82ca90548fcd4b7f7f5e541a751f8f82f09b7890
authorAvi Kivity <avi@redhat.com>
Tue, 23 Jun 2009 13:12:38 +0000 (23 16:12 +0300)
committerAvi Kivity <avi@redhat.com>
Tue, 23 Jun 2009 13:32:38 +0000 (23 16:32 +0300)
tree64cdee300866380ee2c4034d705b763f3fc33659
parent119f9ed1ad0c3f8c4ab78390bc5d0c55b226dc3d
block: Clean up after deleting BHs

Commit 6a7ad299 ("Call qemu_bh_delete at bdrv_aio_bh_cb") deletes emulated
aio bottom halves to prevent endless accumulation.  However, it leaves a
stale ->bh pointer, which is then waited on when the aio is reused.

Zeroing the pointer fixes the issue, allowing vmdk format images to be used.

Signed-off-by: Avi Kivity <avi@redhat.com>
block.c