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 --- util/aio-posix.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'util/aio-posix.c') diff --git a/util/aio-posix.c b/util/aio-posix.c index b590c5add7..4dc597ce9b 100644 --- a/util/aio-posix.c +++ b/util/aio-posix.c @@ -454,9 +454,7 @@ bool aio_dispatch(AioContext *ctx, bool dispatch_fds) } /* Run our timers */ - aio_context_acquire(ctx); progress |= timerlistgroup_run_timers(&ctx->tlg); - aio_context_release(ctx); return progress; } -- cgit 1.4.1