On 12/10/2016 12:18, Changlong Xie wrote:
> +    if (s->in_flight == MAX_NBD_REQUESTS) {
> +        qemu_co_queue_wait(&s->free_sema);
>          assert(s->in_flight < MAX_NBD_REQUESTS);
>      }

I was wondering if this should be a while loop instead, but the
assertion protects against that.  So:

Reviewed-by: Paolo Bonzini <pbonz...@redhat.com>

Reply via email to