void pdu_submit(V9fsPDU *pdu)

{

    Coroutine *co;

    CoroutineEntry *handler;

    V9fsState *s = pdu->s;



    if (pdu->id >= ARRAY_SIZE(pdu_co_handlers) ||

        (pdu_co_handlers[pdu->id] == NULL)) {

        handler = v9fs_op_not_supp;

    } else {

        handler = pdu_co_handlers[pdu->id];

    }



    if (is_ro_export(&s->ctx) && !is_read_only_op(pdu)) {

        handler = v9fs_fs_ro;

    }

    co = qemu_coroutine_create(handler);

    qemu_coroutine_enter(co, pdu);

}

void pdu_submit(V9fsPDU *pdu)

{

    Coroutine *co;

    CoroutineEntry *handler;

    V9fsState *s = pdu->s;



    if (pdu->id >= ARRAY_SIZE(pdu_co_handlers) ||

        (pdu_co_handlers[pdu->id] == NULL)) {

        handler = v9fs_op_not_supp;

    } else {

        handler = pdu_co_handlers[pdu->id];

    }



    if (is_ro_export(&s->ctx) && !is_read_only_op(pdu)) {

        handler = v9fs_fs_ro;

    }

    co = qemu_coroutine_create(handler);

    qemu_coroutine_enter(co, pdu);

}

    co = qemu_coroutine_create(handler);     qemu_coroutine_enter(co, pdu);
void FUNC_0(V9fsPDU *VAR_0)

{

    Coroutine *co;

    CoroutineEntry *handler;

    V9fsState *s = VAR_0->s;



    if (VAR_0->id >= ARRAY_SIZE(pdu_co_handlers) ||

        (pdu_co_handlers[VAR_0->id] == NULL)) {

        handler = v9fs_op_not_supp;

    } else {

        handler = pdu_co_handlers[VAR_0->id];

    }



    if (is_ro_export(&s->ctx) && !is_read_only_op(VAR_0)) {

        handler = v9fs_fs_ro;

    }

    co = qemu_coroutine_create(handler);

    qemu_coroutine_enter(co, VAR_0);

}

void FUNC_0(V9fsPDU *VAR_0)
{ Coroutine *co; CoroutineEntry *handler; V9fsState *s = VAR_0->s; if (VAR_0->id >= ARRAY_SIZE(pdu_co_handlers) ||
(pdu_co_handlers[VAR_0->id] == NULL)) { handler = v9fs_op_not_supp; } else { handler = pdu_co_handlers[VAR_0->id]; } if (is_ro_export(&s->ctx) && !is_read_only_op(VAR_0)) { handler = v9fs_fs_ro; } co = qemu_coroutine_create(handler); qemu_coroutine_enter(co, VAR_0); }