diff options
| author | Paolo Bonzini | 2017-02-13 14:52:32 +0100 |
|---|---|---|
| committer | Stefan Hajnoczi | 2017-02-21 12:39:39 +0100 |
| commit | b9e413dd3756f71abe4e8cafe1d7a459ce74ccf4 (patch) | |
| tree | 3ac75c8cdeedba60249c6eed8d0f35d060b884cf /block/null.c | |
| parent | block: explicitly acquire aiocontext in bottom halves that need it (diff) | |
| download | qemu-b9e413dd3756f71abe4e8cafe1d7a459ce74ccf4.tar.gz qemu-b9e413dd3756f71abe4e8cafe1d7a459ce74ccf4.tar.xz qemu-b9e413dd3756f71abe4e8cafe1d7a459ce74ccf4.zip | |
block: explicitly acquire aiocontext in aio callbacks 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-16-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block/null.c')
| -rw-r--r-- | block/null.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/block/null.c b/block/null.c index 5eb2038f62..b300390944 100644 --- a/block/null.c +++ b/block/null.c @@ -134,22 +134,14 @@ static const AIOCBInfo null_aiocb_info = { static void null_bh_cb(void *opaque) { NullAIOCB *acb = opaque; - AioContext *ctx = bdrv_get_aio_context(acb->common.bs); - - aio_context_acquire(ctx); acb->common.cb(acb->common.opaque, 0); - aio_context_release(ctx); qemu_aio_unref(acb); } static void null_timer_cb(void *opaque) { NullAIOCB *acb = opaque; - AioContext *ctx = bdrv_get_aio_context(acb->common.bs); - - aio_context_acquire(ctx); acb->common.cb(acb->common.opaque, 0); - aio_context_release(ctx); timer_deinit(&acb->timer); qemu_aio_unref(acb); } |
