qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v4 1/3] linux-aio: fix submit aio as a batch


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH v4 1/3] linux-aio: fix submit aio as a batch
Date: Mon, 24 Nov 2014 12:39:38 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0


On 24/11/2014 12:31, Ming Lei wrote:
> +static int ioq_enqueue(struct qemu_laio_state *s, struct iocb *iocb)
>  {
>      unsigned int idx = s->io_q.idx;
>  
> +    if (unlikely(idx == s->io_q.size)) {
> +        ioq_submit(s);
> +        return -EAGAIN;

Only return -EAGAIN if ioq_submit(s) returns 0?  Otherwise reload idx
and go on.

Paolo

> +    }
> +



reply via email to

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