aboutsummaryrefslogtreecommitdiffstats
path: root/include/target
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2011-10-12 11:09:12 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2011-10-23 23:21:13 -0400
commit485fd0d1e3b8010b538bd0b209f3592acc825677 (patch)
treea13b8785b9b24fcec032b9f28fd06597edae7256 /include/target
parent6193f06e6fe27c9475e407cb3cf2b0d4cd2725b0 (diff)
target: replace ->get_cdb with a target_get_task_cdb helper
Instead of calling out to the backends from the core to get a per-task CDB and then modify it for the LBA/len pair used for this CDB provide a helper that writes the adjusted CDB into a provided buffer and call this method from ->do_task in pscsi. Signed-off-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_transport.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/target/target_core_transport.h b/include/target/target_core_transport.h
index c5eb259c2e2f..171c2359bc79 100644
--- a/include/target/target_core_transport.h
+++ b/include/target/target_core_transport.h
@@ -190,6 +190,7 @@ extern int transport_generic_do_tmr(struct se_cmd *);
190extern int core_alua_check_nonop_delay(struct se_cmd *); 190extern int core_alua_check_nonop_delay(struct se_cmd *);
191/* From target_core_cdb.c */ 191/* From target_core_cdb.c */
192extern int transport_emulate_control_cdb(struct se_task *); 192extern int transport_emulate_control_cdb(struct se_task *);
193extern void target_get_task_cdb(struct se_task *task, unsigned char *cdb);
193 194
194/* 195/*
195 * Each se_transport_task_t can have N number of possible struct se_task's 196 * Each se_transport_task_t can have N number of possible struct se_task's
@@ -309,10 +310,6 @@ struct se_subsystem_api {
309 ssize_t (*show_configfs_dev_params)(struct se_hba *, struct se_subsystem_dev *, 310 ssize_t (*show_configfs_dev_params)(struct se_hba *, struct se_subsystem_dev *,
310 char *); 311 char *);
311 /* 312 /*
312 * get_cdb():
313 */
314 unsigned char *(*get_cdb)(struct se_task *);
315 /*
316 * get_device_rev(): 313 * get_device_rev():
317 */ 314 */
318 u32 (*get_device_rev)(struct se_device *); 315 u32 (*get_device_rev)(struct se_device *);