]> git.proxmox.com Git - mirror_qemu.git/commit
iothread: release AioContext around aio_poll
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 27 Oct 2016 10:49:06 +0000 (12:49 +0200)
committerFam Zheng <famz@redhat.com>
Fri, 28 Oct 2016 13:50:18 +0000 (21:50 +0800)
commit65c1b5b622d09044af3f872240d65e7343f6f83e
tree6677708ea342fd5e2b6418a75777c699164bbda2
parentc9d1a56174339b0afdef63b7d151b38f4bb6dae5
iothread: release AioContext around aio_poll

This is the first step towards having fine-grained critical sections in
dataplane threads, which will resolve lock ordering problems between
address_space_* functions (which need the BQL when doing MMIO, even
after we complete RCU-based dispatch) and the AioContext.

Because AioContext does not use contention callbacks anymore, the
unit test has to be changed.

Previously applied as a0710f7995f914e3044e5899bd8ff6c43c62f916 and
then reverted.

Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <1477565348-5458-19-git-send-email-pbonzini@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
async.c
docs/multiple-iothreads.txt
include/block/aio.h
iothread.c
tests/test-aio.c