static void nbd_coroutine_end(NbdClientSession *s,

    struct nbd_request *request)

{

    int i = HANDLE_TO_INDEX(s, request->handle);

    s->recv_coroutine[i] = NULL;

    if (s->in_flight-- == MAX_NBD_REQUESTS) {

        qemu_co_mutex_unlock(&s->free_sema);

    }

}

static void nbd_coroutine_end(NbdClientSession *s,

    struct nbd_request *request)

{

    int i = HANDLE_TO_INDEX(s, request->handle);

    s->recv_coroutine[i] = NULL;

    if (s->in_flight-- == MAX_NBD_REQUESTS) {

        qemu_co_mutex_unlock(&s->free_sema);

    }

}

        qemu_co_mutex_unlock(&s->free_sema);
static void FUNC_0(NbdClientSession *VAR_0,

    struct nbd_request *VAR_1)

{

    int VAR_2 = HANDLE_TO_INDEX(VAR_0, VAR_1->handle);

    VAR_0->recv_coroutine[VAR_2] = NULL;

    if (VAR_0->in_flight-- == MAX_NBD_REQUESTS) {

        qemu_co_mutex_unlock(&VAR_0->free_sema);

    }

}

static void FUNC_0(NbdClientSession *VAR_0,
struct nbd_request *VAR_1)
{ int VAR_2 = HANDLE_TO_INDEX(VAR_0, VAR_1->handle); VAR_0->recv_coroutine[VAR_2] = NULL; if (VAR_0->in_flight-- == MAX_NBD_REQUESTS) { qemu_co_mutex_unlock(&VAR_0->free_sema); } }