void qemu_bh_schedule_idle(QEMUBH *bh)

{

    if (bh->scheduled)

        return;

    bh->idle = 1;

    /* Make sure that idle & any writes needed by the callback are done

     * before the locations are read in the aio_bh_poll.

     */

    smp_wmb();

    bh->scheduled = 1;

}

void qemu_bh_schedule_idle(QEMUBH *bh)

{

    if (bh->scheduled)

        return;

    bh->idle = 1;

    





    smp_wmb();

    bh->scheduled = 1;

}

    if (bh->scheduled)     smp_wmb();     bh->scheduled = 1;     if (bh->scheduled)     bh->scheduled = 1;
void FUNC_0(QEMUBH *VAR_0)

{

    if (VAR_0->scheduled)

        return;

    VAR_0->idle = 1;

    





    smp_wmb();

    VAR_0->scheduled = 1;

}

void FUNC_0(QEMUBH *VAR_0)
{ if (VAR_0->scheduled)
return; VAR_0->idle = 1; smp_wmb(); VAR_0->scheduled = 1; }