iothread: release iothread around aio_poll
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 20 Feb 2015 16:26:52 +0000 (17:26 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 28 Apr 2015 13:36:08 +0000 (15:36 +0200)
commita0710f7995f914e3044e5899bd8ff6c43c62f916
treea6a63bb73444688e7994a4a40eef3a38607f9251
parent49110174f8835ec3d5ca7fc076ee1f51c18564fe
iothread: release iothread around aio_poll

This is the first step towards having fine-grained critical sections in
dataplane threads, which resolves 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.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1424449612-18215-4-git-send-email-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
async.c
iothread.c
tests/test-aio.c