]> xenbits.xensource.com Git - qemu-xen-3.4-testing.git/commit
block: Clean up after deleting BHs xen-3.4.2-rc1
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 7 Oct 2009 14:57:18 +0000 (15:57 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 13 Oct 2009 16:33:51 +0000 (17:33 +0100)
commitdb34a17dce954b14efe2899ce5be0bcb3f06e512
treeeb9b424a9e013b52699d20481a5892d3619d7ebf
parent8e2969fbf7b0919e1c20a24097be7f2cb890575b
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>
[ Backported from 6bbff9a0b495918309074ac60375be5f9dc868b3
  by Stefano Stabellini. ]

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
(cherry picked from commit a05958b6e32f1748ea70b1efca13394956c0698b)
block.c