diff options
| author | Paolo Bonzini | 2017-02-13 14:52:28 +0100 |
|---|---|---|
| committer | Stefan Hajnoczi | 2017-02-21 12:14:08 +0100 |
| commit | 0836c72f70143ba7d4277d89efc7643c526dd90a (patch) | |
| tree | 779c6f4b8ade1ff322568ad19413228374e10dba /scripts/switch-timer-api | |
| parent | qed: introduce qed_aio_start_io and qed_aio_next_io_cb (diff) | |
| download | qemu-0836c72f70143ba7d4277d89efc7643c526dd90a.tar.gz qemu-0836c72f70143ba7d4277d89efc7643c526dd90a.tar.xz qemu-0836c72f70143ba7d4277d89efc7643c526dd90a.zip | |
aio: push aio_context_acquire/release down to dispatching
The AioContext data structures are now protected by list_lock and/or
they are walked with FOREACH_RCU primitives. There is no need anymore
to acquire the AioContext for the entire duration of aio_dispatch.
Instead, just acquire it before and after invoking the callbacks.
The next step is then to push it further down.
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Message-id: 20170213135235.12274-12-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions
