X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=dma-helpers.c;h=2d7e02d35e57613b3921e5621829f3ba1a736bdc;hb=32e70aad7e984f7a609850985895e97fc03579ab;hp=97157cc2ec3e772108b08f9f35ec052910198d55;hpb=4e9f5244e1945b2852b9ddcd7f023a7d19c9ecd7;p=mirror_qemu.git 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); }