diff options
author | Christoph Hellwig <hch@infradead.org> | 2012-05-20 11:59:11 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-07-16 20:25:55 -0400 |
commit | 64f1db38c65fa634f4aa21e0f70480a6b8b4d47c (patch) | |
tree | de8a6b08d9230ba7cb69a3c78174b351123747df /drivers/target/target_core_pscsi.c | |
parent | cb4f4d3c7398a709b48d397e0520ee2509a953a4 (diff) |
target: remove control CDB flags
We don't need three flags to classifiy the CDB as we can check for a NULL S/G
list for a dataless command, and can infer from the absence of the data flag
that we deal with a control CDB. Also remove the _SG_IO from the data CDB
flag as all I/O is dont on S/G lists now.
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/target_core_pscsi.c b/drivers/target/target_core_pscsi.c index 4ce2cf642fce..bfc72327370c 100644 --- a/drivers/target/target_core_pscsi.c +++ b/drivers/target/target_core_pscsi.c | |||
@@ -1042,7 +1042,7 @@ static int pscsi_execute_cmd(struct se_cmd *cmd, struct scatterlist *sgl, | |||
1042 | memcpy(pt->pscsi_cdb, cmd->t_task_cdb, | 1042 | memcpy(pt->pscsi_cdb, cmd->t_task_cdb, |
1043 | scsi_command_size(cmd->t_task_cdb)); | 1043 | scsi_command_size(cmd->t_task_cdb)); |
1044 | 1044 | ||
1045 | if (cmd->se_cmd_flags & SCF_SCSI_NON_DATA_CDB) { | 1045 | if (!sgl) { |
1046 | req = blk_get_request(pdv->pdv_sd->request_queue, | 1046 | req = blk_get_request(pdv->pdv_sd->request_queue, |
1047 | (data_direction == DMA_TO_DEVICE), | 1047 | (data_direction == DMA_TO_DEVICE), |
1048 | GFP_KERNEL); | 1048 | GFP_KERNEL); |