|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [qemu-xen-3.4-testing] Call qemu_bh_delete at bdrv_aio_b
commit 8e2969fbf7b0919e1c20a24097be7f2cb890575b
Author: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Date: Wed Oct 7 15:53:58 2009 +0100
Call qemu_bh_delete at bdrv_aio_bh_cb.
Also replave qemu_bh_cancel with qemu_bh_delete in bdrv_aio_cancel_em.
Otherwise the bh will live forever in the bh list.
Signed-off-by: Dor Laor <dor@xxxxxxxxxx>
Signed-off-by: Anthony Liguori <aliguori@xxxxxxxxxx>
[ Backported from 6bbff9a0b495918309074ac60375be5f9dc868b3
by Stefano Stabellini. ]
Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
(cherry picked from commit f9ad69304fd52092c54fbf64b2937ebdb9980649)
---
block.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/block.c b/block.c
index 69c6da5..bad2d3d 100644
--- a/block.c
+++ b/block.c
@@ -1522,6 +1522,7 @@ static void bdrv_aio_bh_cb(void *opaque)
{
BlockDriverAIOCBSync *acb = opaque;
acb->common.cb(acb->common.opaque, acb->ret);
+ qemu_bh_delete(acb->bh);
qemu_aio_release(acb);
}
@@ -1560,7 +1561,7 @@ static BlockDriverAIOCB
*bdrv_aio_write_em(BlockDriverState *bs,
static void bdrv_aio_cancel_em(BlockDriverAIOCB *blockacb)
{
BlockDriverAIOCBSync *acb = (BlockDriverAIOCBSync *)blockacb;
- qemu_bh_cancel(acb->bh);
+ qemu_bh_delete(acb->bh);
qemu_aio_release(acb);
}
--
generated by git-patchbot for /home/xen/git/qemu-xen-3.4-testing.git
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [qemu-xen-3.4-testing] Call qemu_bh_delete at bdrv_aio_bh_cb.,
Ian Jackson <=
|
|
|
|
|