aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/target_core_spc.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2012-10-10 17:37:14 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2012-11-06 23:55:45 -0500
commit019c4ca621488739b1bfb7597a14ac7f0cbcc908 (patch)
tree2717b223b7a5d1fbd8765805879b87446ea98862 /drivers/target/target_core_spc.c
parente6c4219b54ac9d0bd348ea59e606303f9aef1784 (diff)
target: kill dev->dev_task_attr_type
We can just key off ordered tag emulation of the transport_type field. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_spc.c')
-rw-r--r--drivers/target/target_core_spc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/target/target_core_spc.c b/drivers/target/target_core_spc.c
index 1f1ddb8183c7..8ca62631ec7f 100644
--- a/drivers/target/target_core_spc.c
+++ b/drivers/target/target_core_spc.c
@@ -1054,8 +1054,7 @@ int spc_parse_cdb(struct se_cmd *cmd, unsigned int *size)
1054 * Do implict HEAD_OF_QUEUE processing for INQUIRY. 1054 * Do implict HEAD_OF_QUEUE processing for INQUIRY.
1055 * See spc4r17 section 5.3 1055 * See spc4r17 section 5.3
1056 */ 1056 */
1057 if (cmd->se_dev->dev_task_attr_type == SAM_TASK_ATTR_EMULATED) 1057 cmd->sam_task_attr = MSG_HEAD_TAG;
1058 cmd->sam_task_attr = MSG_HEAD_TAG;
1059 cmd->execute_cmd = spc_emulate_inquiry; 1058 cmd->execute_cmd = spc_emulate_inquiry;
1060 break; 1059 break;
1061 case SECURITY_PROTOCOL_IN: 1060 case SECURITY_PROTOCOL_IN:
@@ -1083,8 +1082,7 @@ int spc_parse_cdb(struct se_cmd *cmd, unsigned int *size)
1083 * Do implict HEAD_OF_QUEUE processing for REPORT_LUNS 1082 * Do implict HEAD_OF_QUEUE processing for REPORT_LUNS
1084 * See spc4r17 section 5.3 1083 * See spc4r17 section 5.3
1085 */ 1084 */
1086 if (cmd->se_dev->dev_task_attr_type == SAM_TASK_ATTR_EMULATED) 1085 cmd->sam_task_attr = MSG_HEAD_TAG;
1087 cmd->sam_task_attr = MSG_HEAD_TAG;
1088 break; 1086 break;
1089 case TEST_UNIT_READY: 1087 case TEST_UNIT_READY:
1090 cmd->execute_cmd = spc_emulate_testunitready; 1088 cmd->execute_cmd = spc_emulate_testunitready;