iscsi_aio_flush(BlockDriverState *bs,

                BlockDriverCompletionFunc *cb, void *opaque)

{

    IscsiLun *iscsilun = bs->opaque;

    struct iscsi_context *iscsi = iscsilun->iscsi;

    IscsiAIOCB *acb;



    acb = qemu_aio_get(&iscsi_aiocb_info, bs, cb, opaque);



    acb->iscsilun = iscsilun;

    acb->canceled   = 0;

    acb->bh         = NULL;

    acb->status     = -EINPROGRESS;

    acb->buf        = NULL;



    acb->task = iscsi_synchronizecache10_task(iscsi, iscsilun->lun,

                                         0, 0, 0, 0,

                                         iscsi_synccache10_cb,

                                         acb);

    if (acb->task == NULL) {

        error_report("iSCSI: Failed to send synchronizecache10 command. %s",

                     iscsi_get_error(iscsi));

        qemu_aio_release(acb);

        return NULL;

    }



    iscsi_set_events(iscsilun);



    return &acb->common;

}

iscsi_aio_flush(BlockDriverState *bs,

                BlockDriverCompletionFunc *cb, void *opaque)

{

    IscsiLun *iscsilun = bs->opaque;

    struct iscsi_context *iscsi = iscsilun->iscsi;

    IscsiAIOCB *acb;



    acb = qemu_aio_get(&iscsi_aiocb_info, bs, cb, opaque);



    acb->iscsilun = iscsilun;

    acb->canceled   = 0;

    acb->bh         = NULL;

    acb->status     = -EINPROGRESS;

    acb->buf        = NULL;



    acb->task = iscsi_synchronizecache10_task(iscsi, iscsilun->lun,

                                         0, 0, 0, 0,

                                         iscsi_synccache10_cb,

                                         acb);

    if (acb->task == NULL) {

        error_report("iSCSI: Failed to send synchronizecache10 command. %s",

                     iscsi_get_error(iscsi));

        qemu_aio_release(acb);

        return NULL;

    }



    iscsi_set_events(iscsilun);



    return &acb->common;

}

FUNC_0(BlockDriverState *VAR_0,

                BlockDriverCompletionFunc *VAR_1, void *VAR_2)

{

    IscsiLun *iscsilun = VAR_0->VAR_2;

    struct iscsi_context *VAR_3 = iscsilun->VAR_3;

    IscsiAIOCB *acb;



    acb = qemu_aio_get(&iscsi_aiocb_info, VAR_0, VAR_1, VAR_2);



    acb->iscsilun = iscsilun;

    acb->canceled   = 0;

    acb->bh         = NULL;

    acb->status     = -EINPROGRESS;

    acb->buf        = NULL;



    acb->task = iscsi_synchronizecache10_task(VAR_3, iscsilun->lun,

                                         0, 0, 0, 0,

                                         iscsi_synccache10_cb,

                                         acb);

    if (acb->task == NULL) {

        error_report("iSCSI: Failed to send synchronizecache10 command. %s",

                     iscsi_get_error(VAR_3));

        qemu_aio_release(acb);

        return NULL;

    }



    iscsi_set_events(iscsilun);



    return &acb->common;

}

FUNC_0(BlockDriverState *VAR_0,
BlockDriverCompletionFunc *VAR_1, void *VAR_2)
{ IscsiLun *iscsilun = VAR_0->VAR_2; struct iscsi_context *VAR_3 = iscsilun->VAR_3; IscsiAIOCB *acb; acb = qemu_aio_get(&iscsi_aiocb_info, VAR_0, VAR_1, VAR_2); acb->iscsilun = iscsilun; acb->canceled   = 0; acb->bh         = NULL; acb->status     = -EINPROGRESS; acb->buf        = NULL; acb->task = iscsi_synchronizecache10_task(VAR_3, iscsilun->lun,
0, 0, 0, 0,
iscsi_synccache10_cb,
acb); if (acb->task == NULL) { error_report("iSCSI: Failed to send synchronizecache10 command. %s",
iscsi_get_error(VAR_3)); qemu_aio_release(acb); return NULL; } iscsi_set_events(iscsilun); return &acb->common; }