static void run_dependent_requests(BDRVQcowState *s, QCowL2Meta *m)

{

    /* Take the request off the list of running requests */

    if (m->nb_clusters != 0) {

        QLIST_REMOVE(m, next_in_flight);

    }



    /* Restart all dependent requests */

    if (!qemu_co_queue_empty(&m->dependent_requests)) {

        qemu_co_mutex_unlock(&s->lock);

        while(qemu_co_queue_next(&m->dependent_requests));

        qemu_co_mutex_lock(&s->lock);

    }

}

static void run_dependent_requests(BDRVQcowState *s, QCowL2Meta *m)

{

    

    if (m->nb_clusters != 0) {

        QLIST_REMOVE(m, next_in_flight);

    }



    

    if (!qemu_co_queue_empty(&m->dependent_requests)) {

        qemu_co_mutex_unlock(&s->lock);

        while(qemu_co_queue_next(&m->dependent_requests));

        qemu_co_mutex_lock(&s->lock);

    }

}

static void FUNC_0(BDRVQcowState *VAR_0, QCowL2Meta *VAR_1)

{

    

    if (VAR_1->nb_clusters != 0) {

        QLIST_REMOVE(VAR_1, next_in_flight);

    }



    

    if (!qemu_co_queue_empty(&VAR_1->dependent_requests)) {

        qemu_co_mutex_unlock(&VAR_0->lock);

        while(qemu_co_queue_next(&VAR_1->dependent_requests));

        qemu_co_mutex_lock(&VAR_0->lock);

    }

}

static void FUNC_0(BDRVQcowState *VAR_0, QCowL2Meta *VAR_1)
{ if (VAR_1->nb_clusters != 0) { QLIST_REMOVE(VAR_1, next_in_flight); } if (!qemu_co_queue_empty(&VAR_1->dependent_requests)) { qemu_co_mutex_unlock(&VAR_0->lock); while(qemu_co_queue_next(&VAR_1->dependent_requests)); qemu_co_mutex_lock(&VAR_0->lock); } }