]> git.proxmox.com Git - mirror_qemu.git/commit - util/async.c
block: mark AioContext as recursive
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 17 Dec 2014 15:09:58 +0000 (16:09 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 13 Jan 2015 11:47:55 +0000 (11:47 +0000)
commitfcf5def1ab0f94ff120b7141c943b517d2ece83d
tree7ef226e4d84faf66f58d2b0615f1f3afcae2eb51
parentb8aff7d6bfa1632d722f47a1a6bca679221b6db3
block: mark AioContext as recursive

AioContext can be accessed recursively, in fact that's what we do with
aio_poll.  Marking the GSource as recursive avoids that GLib blocks it
and unblocks it around every call to aio_dispatch, which is a pretty
expensive operation.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
async.c