diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-11-03 17:50:42 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-11-04 04:00:17 -0400 |
commit | e76a35d6c809bd1638e3b1b535bb780ac731c380 (patch) | |
tree | a67bbbbc16cb4e612015da8b0f86fe981d1a5f77 /include | |
parent | 617c0e06c1b30b799d8b25f92eefdc1b098cb9f8 (diff) |
target: pass the se_task to the CDB emulation callback
We want to be able to handle all CDBs through it and remove hacks like
always using the first task in a CDB in target_report_luns.
Also rename the callback to ->execute_task to better describe its use.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/target/target_core_base.h | 2 | ||||
-rw-r--r-- | include/target/target_core_device.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h index dd245b68be5a..14c1a71a36eb 100644 --- a/include/target/target_core_base.h +++ b/include/target/target_core_base.h | |||
@@ -457,7 +457,7 @@ struct se_cmd { | |||
457 | struct list_head se_cmd_list; | 457 | struct list_head se_cmd_list; |
458 | struct completion cmd_wait_comp; | 458 | struct completion cmd_wait_comp; |
459 | struct target_core_fabric_ops *se_tfo; | 459 | struct target_core_fabric_ops *se_tfo; |
460 | int (*transport_emulate_cdb)(struct se_cmd *); | 460 | int (*execute_task)(struct se_task *); |
461 | void (*transport_complete_callback)(struct se_cmd *); | 461 | void (*transport_complete_callback)(struct se_cmd *); |
462 | 462 | ||
463 | unsigned char *t_task_cdb; | 463 | unsigned char *t_task_cdb; |
diff --git a/include/target/target_core_device.h b/include/target/target_core_device.h index 46571912086c..2be31ff8763b 100644 --- a/include/target/target_core_device.h +++ b/include/target/target_core_device.h | |||
@@ -17,7 +17,7 @@ extern int core_dev_export(struct se_device *, struct se_portal_group *, | |||
17 | struct se_lun *); | 17 | struct se_lun *); |
18 | extern void core_dev_unexport(struct se_device *, struct se_portal_group *, | 18 | extern void core_dev_unexport(struct se_device *, struct se_portal_group *, |
19 | struct se_lun *); | 19 | struct se_lun *); |
20 | extern int transport_core_report_lun_response(struct se_cmd *); | 20 | extern int target_report_luns(struct se_task *); |
21 | extern void se_release_device_for_hba(struct se_device *); | 21 | extern void se_release_device_for_hba(struct se_device *); |
22 | extern void se_release_vpd_for_dev(struct se_device *); | 22 | extern void se_release_vpd_for_dev(struct se_device *); |
23 | extern void se_clear_dev_ports(struct se_device *); | 23 | extern void se_clear_dev_ports(struct se_device *); |