summaryrefslogtreecommitdiff
path: root/drivers/target/target_core_pscsi.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2012-04-23 15:35:29 (GMT)
committerNicholas Bellinger <nab@linux-iscsi.org>2012-05-06 22:02:59 (GMT)
commited3102c678c6274933948f9097bb4e2b314e5f82 (patch)
treea1dabb18032a61539905fe932bc1949cb6e8dd80 /drivers/target/target_core_pscsi.c
parent32d8d2e4300cabb0acbf4b60fa695924be27d0d1 (diff)
downloadlinux-ed3102c678c6274933948f9097bb4e2b314e5f82.tar.xz
target: remove target_get_task_cdb
Now that tasks are always the same size as the command there is no need to rewrite a CDB in common code. Notw that we keep the separately allocated CDB in the pscsi and stgt backends for now, to easy reintroducing any command splitting local to these backends if nessecary. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_pscsi.c')
-rw-r--r--drivers/target/target_core_pscsi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/target/target_core_pscsi.c b/drivers/target/target_core_pscsi.c
index 94c905f..94c7a46 100644
--- a/drivers/target/target_core_pscsi.c
+++ b/drivers/target/target_core_pscsi.c
@@ -1070,7 +1070,8 @@ static int pscsi_do_task(struct se_task *task)
struct bio *hbio;
int ret;
- target_get_task_cdb(task, pt->pscsi_cdb);
+ memcpy(pt->pscsi_cdb, cmd->t_task_cdb,
+ scsi_command_size(cmd->t_task_cdb));
if (task->task_se_cmd->se_cmd_flags & SCF_SCSI_NON_DATA_CDB) {
req = blk_get_request(pdv->pdv_sd->request_queue,