On Wed, Jun 15, 2011 at 11:33 AM, Kevin Wolf <kw...@redhat.com> wrote: > 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 <kw...@redhat.com> > --- > async.c | 5 +++-- > 1 files changed, 3 insertions(+), 2 deletions(-)
Almost worth switching to qemu-queue.h and FOREACH_SAFE(). Reviewed-by: Stefan Hajnoczi <stefa...@linux.vnet.ibm.com>