iscsi_aio_cancel(BlockDriverAIOCB *blockacb)

{

    IscsiAIOCB *acb = (IscsiAIOCB *)blockacb;

    IscsiLun *iscsilun = acb->iscsilun;



    acb->common.cb(acb->common.opaque, -ECANCELED);

    acb->canceled = 1;



    /* send a task mgmt call to the target to cancel the task on the target */

    iscsi_task_mgmt_abort_task_async(iscsilun->iscsi, acb->task,

                                     iscsi_abort_task_cb, NULL);



    /* then also cancel the task locally in libiscsi */

    iscsi_scsi_task_cancel(iscsilun->iscsi, acb->task);

}

iscsi_aio_cancel(BlockDriverAIOCB *blockacb)

{

    IscsiAIOCB *acb = (IscsiAIOCB *)blockacb;

    IscsiLun *iscsilun = acb->iscsilun;



    acb->common.cb(acb->common.opaque, -ECANCELED);

    acb->canceled = 1;



    

    iscsi_task_mgmt_abort_task_async(iscsilun->iscsi, acb->task,

                                     iscsi_abort_task_cb, NULL);



    

    iscsi_scsi_task_cancel(iscsilun->iscsi, acb->task);

}

    acb->common.cb(acb->common.opaque, -ECANCELED);     iscsi_task_mgmt_abort_task_async(iscsilun->iscsi, acb->task,                                      iscsi_abort_task_cb, NULL);     iscsi_scsi_task_cancel(iscsilun->iscsi, acb->task);
FUNC_0(BlockDriverAIOCB *VAR_0)

{

    IscsiAIOCB *acb = (IscsiAIOCB *)VAR_0;

    IscsiLun *iscsilun = acb->iscsilun;



    acb->common.cb(acb->common.opaque, -ECANCELED);

    acb->canceled = 1;



    

    iscsi_task_mgmt_abort_task_async(iscsilun->iscsi, acb->task,

                                     iscsi_abort_task_cb, NULL);



    

    iscsi_scsi_task_cancel(iscsilun->iscsi, acb->task);

}

FUNC_0(BlockDriverAIOCB *VAR_0)
{ IscsiAIOCB *acb = (IscsiAIOCB *)VAR_0; IscsiLun *iscsilun = acb->iscsilun; acb->common.cb(acb->common.opaque, -ECANCELED); acb->canceled = 1; iscsi_task_mgmt_abort_task_async(iscsilun->iscsi, acb->task,
iscsi_abort_task_cb, NULL); iscsi_scsi_task_cancel(iscsilun->iscsi, acb->task); }