On Mon, Nov 24, 2014 at 10:29:37PM +0800, Ming Lei wrote:
> +    /* submit immediately if queue depth is above 2/3 */
> +    if (idx > s->io_q.size * 2 / 3) {
> +        return ioq_submit(s);

The return value of ioq_submit() is the number of requests submitted (0
or more).  This has no meaning to the caller and therefore shouldn't be
the return value of this function.

Please drop the return here.

Attachment: pgp1GuD56x9r1.pgp
Description: PGP signature

Reply via email to