From 2f47da5f7f88d3966a2cb33cc9de53f134fea367 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Mon, 13 Feb 2017 14:52:29 +0100 Subject: block: explicitly acquire aiocontext in timers that need it Reviewed-by: Stefan Hajnoczi Signed-off-by: Paolo Bonzini Reviewed-by: Fam Zheng Reviewed-by: Daniel P. Berrange Message-id: 20170213135235.12274-13-pbonzini@redhat.com Signed-off-by: Stefan Hajnoczi --- block/curl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'block/curl.c') diff --git a/block/curl.c b/block/curl.c index 792fef8269..65e6da1f2c 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 -- cgit v1.2.3