qemu-stable
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-stable] [PATCH 2/4] aio_context: create aio_context_is_locked


From: Stefan Hajnoczi
Subject: Re: [Qemu-stable] [PATCH 2/4] aio_context: create aio_context_is_locked helper
Date: Fri, 30 Oct 2015 15:42:48 +0000
User-agent: Mutt/1.5.24 (2015-08-30)

On Wed, Oct 28, 2015 at 06:01:03PM +0300, Denis V. Lunev wrote:
> This helper is necessary to ensure locking constraints.
> 
> Signed-off-by: Denis V. Lunev <address@hidden>
> CC: Stefan Hajnoczi <address@hidden>
> CC: Paolo Bonzini <address@hidden>
> ---
>  async.c             | 5 +++++
>  include/block/aio.h | 3 +++
>  2 files changed, 8 insertions(+)
> 
> diff --git a/async.c b/async.c
> index bdc64a3..4a9250e 100644
> --- a/async.c
> +++ b/async.c
> @@ -361,3 +361,8 @@ void aio_context_release(AioContext *ctx)
>  {
>      rfifolock_unlock(&ctx->lock);
>  }
> +
> +int aio_context_is_locked(AioContext *ctx)

s/int/bool/

The name aio_context_acquired_by_current_thread() would be clearer (but
longer) than aio_context_is_locked().

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]