diff options
| author | Paolo Bonzini | 2017-02-13 14:52:31 +0100 |
|---|---|---|
| committer | Stefan Hajnoczi | 2017-02-21 12:39:39 +0100 |
| commit | 1919631e6b5562e474690853eca3c35610201e16 (patch) | |
| tree | f2a7e1da7d7d0ad988faa4801309a45a68c78b60 /dma-helpers.c | |
| parent | block: explicitly acquire aiocontext in callbacks that need it (diff) | |
| download | qemu-1919631e6b5562e474690853eca3c35610201e16.tar.gz qemu-1919631e6b5562e474690853eca3c35610201e16.tar.xz qemu-1919631e6b5562e474690853eca3c35610201e16.zip | |
block: explicitly acquire aiocontext in bottom halves that need it
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-15-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'dma-helpers.c')
| -rw-r--r-- | dma-helpers.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dma-helpers.c b/dma-helpers.c index 97157cc2ec..2d7e02d35e 100644 --- a/dma-helpers.c +++ b/dma-helpers.c @@ -166,8 +166,10 @@ static void dma_blk_cb(void *opaque, int ret) QEMU_ALIGN_DOWN(dbs->iov.size, dbs->align)); } + aio_context_acquire(dbs->ctx); dbs->acb = dbs->io_func(dbs->offset, &dbs->iov, dma_blk_cb, dbs, dbs->io_func_opaque); + aio_context_release(dbs->ctx); assert(dbs->acb); } |
