diff options
author | Roland Dreier <roland@purestorage.com> | 2012-03-30 14:29:15 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-04-14 20:40:32 -0400 |
commit | 957525a2424aad367d6e0efb64e440b2b37fa5cd (patch) | |
tree | dc56eaa7a6e60ad674059d110e6d4145adb55efd /include/target | |
parent | 6f9e7f01b69bc2d6021e4ab827e1fd78c82cbc52 (diff) |
target: Remove transport_do_task_sg_chain() and associated detritus
Now that all fabrics are converted over to using se_cmd->t_data_sg
directly, we can drop the task sg chaining support. With the modern
memory allocation in target core, task sg chaining is needless
overhead -- we would split up the main cmd sglist into pieces, and
then splice those pieces back together instead of just using the
original list directly.
Signed-off-by: Roland Dreier <roland@purestorage.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target')
-rw-r--r-- | include/target/target_core_base.h | 2 | ||||
-rw-r--r-- | include/target/target_core_fabric.h | 7 |
2 files changed, 0 insertions, 9 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h index 6a02c99d54a5..8ec4e8232be4 100644 --- a/include/target/target_core_base.h +++ b/include/target/target_core_base.h | |||
@@ -572,7 +572,6 @@ struct se_cmd { | |||
572 | unsigned char *t_task_cdb; | 572 | unsigned char *t_task_cdb; |
573 | unsigned char __t_task_cdb[TCM_MAX_COMMAND_SIZE]; | 573 | unsigned char __t_task_cdb[TCM_MAX_COMMAND_SIZE]; |
574 | unsigned long long t_task_lba; | 574 | unsigned long long t_task_lba; |
575 | u32 t_tasks_sg_chained_no; | ||
576 | atomic_t t_fe_count; | 575 | atomic_t t_fe_count; |
577 | atomic_t t_se_count; | 576 | atomic_t t_se_count; |
578 | atomic_t t_task_cdbs_left; | 577 | atomic_t t_task_cdbs_left; |
@@ -593,7 +592,6 @@ struct se_cmd { | |||
593 | struct completion t_transport_stop_comp; | 592 | struct completion t_transport_stop_comp; |
594 | struct completion transport_lun_fe_stop_comp; | 593 | struct completion transport_lun_fe_stop_comp; |
595 | struct completion transport_lun_stop_comp; | 594 | struct completion transport_lun_stop_comp; |
596 | struct scatterlist *t_tasks_sg_chained; | ||
597 | 595 | ||
598 | struct work_struct work; | 596 | struct work_struct work; |
599 | 597 | ||
diff --git a/include/target/target_core_fabric.h b/include/target/target_core_fabric.h index 10c690809601..83734ccc982c 100644 --- a/include/target/target_core_fabric.h +++ b/include/target/target_core_fabric.h | |||
@@ -3,12 +3,6 @@ | |||
3 | 3 | ||
4 | struct target_core_fabric_ops { | 4 | struct target_core_fabric_ops { |
5 | struct configfs_subsystem *tf_subsys; | 5 | struct configfs_subsystem *tf_subsys; |
6 | /* | ||
7 | * Optional to signal struct se_task->task_sg[] padding entries | ||
8 | * for scatterlist chaining using transport_do_task_sg_link(), | ||
9 | * disabled by default | ||
10 | */ | ||
11 | bool task_sg_chaining; | ||
12 | char *(*get_fabric_name)(void); | 6 | char *(*get_fabric_name)(void); |
13 | u8 (*get_fabric_proto_ident)(struct se_portal_group *); | 7 | u8 (*get_fabric_proto_ident)(struct se_portal_group *); |
14 | char *(*tpg_get_wwn)(struct se_portal_group *); | 8 | char *(*tpg_get_wwn)(struct se_portal_group *); |
@@ -124,7 +118,6 @@ int transport_generic_handle_cdb_map(struct se_cmd *); | |||
124 | int transport_generic_handle_data(struct se_cmd *); | 118 | int transport_generic_handle_data(struct se_cmd *); |
125 | int transport_generic_map_mem_to_cmd(struct se_cmd *cmd, | 119 | int transport_generic_map_mem_to_cmd(struct se_cmd *cmd, |
126 | struct scatterlist *, u32, struct scatterlist *, u32); | 120 | struct scatterlist *, u32, struct scatterlist *, u32); |
127 | void transport_do_task_sg_chain(struct se_cmd *); | ||
128 | int transport_generic_new_cmd(struct se_cmd *); | 121 | int transport_generic_new_cmd(struct se_cmd *); |
129 | 122 | ||
130 | void transport_generic_process_write(struct se_cmd *); | 123 | void transport_generic_process_write(struct se_cmd *); |