get rid of the _async() scsi functions.
We dotn need two interfaces that only diuffer in whether they return a pointer or NULL vs an semiidentical interface that returns 0 or <0 All uses of _async() for scsi tasks should be replaced with the equivalent _task() function instead
This commit is contained in:
@@ -527,48 +527,19 @@ iscsi_set_isid_reserved(struct iscsi_context *iscsi);
|
||||
|
||||
|
||||
/*
|
||||
* The scsi commands use/return a scsi_task structure either when invoked
|
||||
* or through the callback.
|
||||
* The scsi commands use/return a scsi_task structure when invoked
|
||||
* and also through the callback.
|
||||
*
|
||||
* You must release this structure when you are finished with the task
|
||||
* by calling scsi_free_scsi_task().
|
||||
* Most of the time this means you should call this function before returning
|
||||
* from the callback.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Async commands for SCSI
|
||||
*/
|
||||
int iscsi_scsi_command_async(struct iscsi_context *iscsi, int lun,
|
||||
struct scsi_task *task, iscsi_command_cb cb,
|
||||
struct iscsi_data *data, void *private_data);
|
||||
|
||||
int iscsi_reportluns_async(struct iscsi_context *iscsi, int report_type,
|
||||
int alloc_len, iscsi_command_cb cb,
|
||||
void *private_data);
|
||||
int iscsi_testunitready_async(struct iscsi_context *iscsi, int lun,
|
||||
iscsi_command_cb cb, void *private_data);
|
||||
int iscsi_inquiry_async(struct iscsi_context *iscsi, int lun, int evpd,
|
||||
int page_code, int maxsize, iscsi_command_cb cb,
|
||||
void *private_data);
|
||||
int iscsi_readcapacity10_async(struct iscsi_context *iscsi, int lun, int lba,
|
||||
int pmi, iscsi_command_cb cb,
|
||||
void *private_data);
|
||||
int iscsi_synchronizecache10_async(struct iscsi_context *iscsi, int lun,
|
||||
int lba, int num_blocks, int syncnv,
|
||||
int immed, iscsi_command_cb cb,
|
||||
void *private_data);
|
||||
int iscsi_read10_async(struct iscsi_context *iscsi, int lun, uint32_t lba,
|
||||
uint32_t datalen, int blocksize, iscsi_command_cb cb,
|
||||
void *private_data);
|
||||
int iscsi_write10_async(struct iscsi_context *iscsi, int lun,
|
||||
unsigned char *data, uint32_t datalen, uint32_t lba, int fua,
|
||||
int fuanv, int blocksize, iscsi_command_cb cb,
|
||||
void *private_data);
|
||||
int iscsi_modesense6_async(struct iscsi_context *iscsi, int lun, int dbd,
|
||||
int pc, int page_code, int sub_page_code,
|
||||
unsigned char alloc_len, iscsi_command_cb cb,
|
||||
void *private_data);
|
||||
|
||||
/*
|
||||
* Async commands for SCSI
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user