Allow nested qemu_bh_poll() after BH deletion
commit7887f6201ff3fdc9a142eba14d61c563adb57596
authorKevin Wolf <kwolf@redhat.com>
Tue, 7 Jun 2011 15:51:21 +0000 (7 17:51 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 15 Jun 2011 13:43:20 +0000 (15 15:43 +0200)
treed73ada91776eaaf7f87424c6514b0eeab7c1b31a
parentee752da74f5d07cf441f8d42455c4241d6051ae5
Allow nested qemu_bh_poll() after BH deletion

Without this, qemu segfaults when a BH handler first deletes its BH and
then calls another function which involves a nested qemu_bh_poll() call.

This can be reproduced by generating an I/O error (e.g. with blkdebug) on
an IDE device and using rerror/werror=stop to stop the VM. When continuing
the VM, qemu segfaults.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
async.c