qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 05/12] aio: introduce aio_{disable, enable}_clie


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH 05/12] aio: introduce aio_{disable, enable}_clients
Date: Fri, 9 Oct 2015 16:10:53 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Am 09.10.2015 um 07:45 hat Fam Zheng geschrieben:
> Signed-off-by: Fam Zheng <address@hidden>

> +void aio_disable_enable_clients(AioContext *ctx, int clients_mask,
> +                                bool is_disable)
> +{
> +    int i = 1;
> +    int n = 0;
> +    aio_context_acquire(ctx);
> +
> +    while (clients_mask) {
> +        bool b = clients_mask & 0x1;
> +        clients_mask >>= 1;
> +        n++;
> +        i <<= 1;
> +        if (!b) {
> +            continue;
> +        }
> +        if (ctx->client_disable_counters[n]) {
> +            return true;

async.c: In function 'aio_disable_enable_clients':
async.c:401:13: error: 'return' with a value, in function returning void 
[-Werror]
             return true;

> +        }
> +    }
> +    aio_context_release(ctx);
> +}

Kevin



reply via email to

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