block: Clean up after deleting BHs
authorAvi Kivity <avi@redhat.com>
Tue, 23 Jun 2009 13:20:36 +0000 (16:20 +0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 10 Jul 2009 18:44:30 +0000 (13:44 -0500)
commitba88fb81f66c36d8db1b27ef2a5be39414ea8c72
treeffbbdd33f4baf0460a6ef021892c1d89f3df19d4
parent8334ec0008a57f4e0de8224ab5af6de50aa10f3b
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>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
block.c