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 /include/target | |
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 'include/target')
-rw-r--r-- | include/target/target_core_base.h | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h index dc35d8660aa6..abda19d6cbd2 100644 --- a/include/target/target_core_base.h +++ b/include/target/target_core_base.h | |||
@@ -160,25 +160,22 @@ enum se_cmd_flags_table { | |||
160 | SCF_SUPPORTED_SAM_OPCODE = 0x00000001, | 160 | SCF_SUPPORTED_SAM_OPCODE = 0x00000001, |
161 | SCF_TRANSPORT_TASK_SENSE = 0x00000002, | 161 | SCF_TRANSPORT_TASK_SENSE = 0x00000002, |
162 | SCF_EMULATED_TASK_SENSE = 0x00000004, | 162 | SCF_EMULATED_TASK_SENSE = 0x00000004, |
163 | SCF_SCSI_DATA_SG_IO_CDB = 0x00000008, | 163 | SCF_SCSI_DATA_CDB = 0x00000008, |
164 | SCF_SCSI_CONTROL_SG_IO_CDB = 0x00000010, | 164 | SCF_SCSI_TMR_CDB = 0x00000010, |
165 | SCF_SCSI_NON_DATA_CDB = 0x00000020, | 165 | SCF_SCSI_CDB_EXCEPTION = 0x00000020, |
166 | SCF_SCSI_TMR_CDB = 0x00000040, | 166 | SCF_SCSI_RESERVATION_CONFLICT = 0x00000040, |
167 | SCF_SCSI_CDB_EXCEPTION = 0x00000080, | 167 | SCF_FUA = 0x00000080, |
168 | SCF_SCSI_RESERVATION_CONFLICT = 0x00000100, | 168 | SCF_SE_LUN_CMD = 0x00000100, |
169 | SCF_FUA = 0x00000200, | 169 | SCF_SE_ALLOW_EOO = 0x00000200, |
170 | SCF_SE_LUN_CMD = 0x00000800, | 170 | SCF_BIDI = 0x00000400, |
171 | SCF_SE_ALLOW_EOO = 0x00001000, | 171 | SCF_SENT_CHECK_CONDITION = 0x00000800, |
172 | SCF_BIDI = 0x00002000, | 172 | SCF_OVERFLOW_BIT = 0x00001000, |
173 | SCF_SENT_CHECK_CONDITION = 0x00004000, | 173 | SCF_UNDERFLOW_BIT = 0x00002000, |
174 | SCF_OVERFLOW_BIT = 0x00008000, | 174 | SCF_SENT_DELAYED_TAS = 0x00004000, |
175 | SCF_UNDERFLOW_BIT = 0x00010000, | 175 | SCF_ALUA_NON_OPTIMIZED = 0x00008000, |
176 | SCF_SENT_DELAYED_TAS = 0x00020000, | 176 | SCF_DELAYED_CMD_FROM_SAM_ATTR = 0x00010000, |
177 | SCF_ALUA_NON_OPTIMIZED = 0x00040000, | 177 | SCF_PASSTHROUGH_SG_TO_MEM_NOALLOC = 0x00020000, |
178 | SCF_DELAYED_CMD_FROM_SAM_ATTR = 0x00080000, | 178 | SCF_ACK_KREF = 0x00040000, |
179 | SCF_UNUSED = 0x00100000, | ||
180 | SCF_PASSTHROUGH_SG_TO_MEM_NOALLOC = 0x00200000, | ||
181 | SCF_ACK_KREF = 0x00400000, | ||
182 | }; | 179 | }; |
183 | 180 | ||
184 | /* struct se_dev_entry->lun_flags and struct se_lun->lun_access */ | 181 | /* struct se_dev_entry->lun_flags and struct se_lun->lun_access */ |