]> git.proxmox.com Git - qemu.git/commit - async.c
aio: fix aio_ctx_prepare with idle bottom halves
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 12 Nov 2012 12:30:10 +0000 (13:30 +0100)
committermalc <av1474@comtv.ru>
Mon, 12 Nov 2012 16:02:09 +0000 (20:02 +0400)
commitf5022a135e4309a54d433c69b2a056756b2d0d6b
treea3e242e14319e0e81dfa742aa803b9236819b9e3
parent3c5645fab3c4b65d0cffbe1aaafc787e4be63d0f
aio: fix aio_ctx_prepare with idle bottom halves

Commit ed2aec4867f0d5f5de496bb765347b5d0cfe113d changed the return
value of aio_ctx_prepare from false to true when only idle bottom
halves are available.  This broke PC old-style DMA, which uses them.
Fix this by making aio_ctx_prepare return true only when non-idle
bottom halves are scheduled to run.

Reported-by: malc <av1474@comtv.ru>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: malc <av1474@comtv.ru>
async.c