diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2017-02-13 14:52:29 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2017-02-21 11:14:08 +0000 |
commit | 2f47da5f7f88d3966a2cb33cc9de53f134fea367 (patch) | |
tree | 787ad7109e1add804620bd3dedbc81d36073fd07 /block/curl.c | |
parent | 0836c72f70143ba7d4277d89efc7643c526dd90a (diff) | |
download | qemu-2f47da5f7f88d3966a2cb33cc9de53f134fea367.zip qemu-2f47da5f7f88d3966a2cb33cc9de53f134fea367.tar.gz qemu-2f47da5f7f88d3966a2cb33cc9de53f134fea367.tar.bz2 |
block: explicitly acquire aiocontext in timers 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-13-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block/curl.c')
-rw-r--r-- | block/curl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block/curl.c b/block/curl.c index 792fef8..65e6da1 100644 --- a/block/curl.c +++ b/block/curl.c @@ -424,9 +424,11 @@ static void curl_multi_timeout_do(void *arg) return; } + aio_context_acquire(s->aio_context); curl_multi_socket_action(s->multi, CURL_SOCKET_TIMEOUT, 0, &running); curl_multi_check_completion(s); + aio_context_release(s->aio_context); #else abort(); #endif |