diff options
author | Dan Williams <dan.j.williams@intel.com> | 2011-06-23 17:33:48 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2011-07-03 07:04:51 -0400 |
commit | 38d8879baeb61b6946052739e7c03fa79b3a57f0 (patch) | |
tree | 66714c4769ba5e81311f33a6ded544b5e9a02c6c /drivers/scsi/isci/request.h | |
parent | 312e0c2455c18716cf640d4336dcb1e9e5053818 (diff) |
isci: combine request flags
Combine three bools into one unsigned long 'flags'. Doesn't increase the
request size due to packing. (to do: optimize the structure layout).
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/request.h')
-rw-r--r-- | drivers/scsi/isci/request.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/scsi/isci/request.h b/drivers/scsi/isci/request.h index 8c77c4cbe04a..f440e421ea0e 100644 --- a/drivers/scsi/isci/request.h +++ b/drivers/scsi/isci/request.h | |||
@@ -210,12 +210,6 @@ struct scic_sds_request { | |||
210 | struct scu_sgl_element_pair sg_table[SCU_SGL_SIZE] __attribute__ ((aligned(32))); | 210 | struct scu_sgl_element_pair sg_table[SCU_SGL_SIZE] __attribute__ ((aligned(32))); |
211 | 211 | ||
212 | /* | 212 | /* |
213 | * This field indicates if this request is a task management request or | ||
214 | * normal IO request. | ||
215 | */ | ||
216 | bool is_task_management_request; | ||
217 | |||
218 | /* | ||
219 | * This field is a pointer to the stored rx frame data. It is used in | 213 | * This field is a pointer to the stored rx frame data. It is used in |
220 | * STP internal requests and SMP response frames. If this field is | 214 | * STP internal requests and SMP response frames. If this field is |
221 | * non-NULL the saved frame must be released on IO request completion. | 215 | * non-NULL the saved frame must be released on IO request completion. |
@@ -260,8 +254,10 @@ struct isci_request { | |||
260 | enum isci_request_status status; | 254 | enum isci_request_status status; |
261 | enum task_type ttype; | 255 | enum task_type ttype; |
262 | unsigned short io_tag; | 256 | unsigned short io_tag; |
263 | bool complete_in_target; | 257 | #define IREQ_COMPLETE_IN_TARGET 0 |
264 | bool terminated; | 258 | #define IREQ_TERMINATED 1 |
259 | #define IREQ_TMF 2 | ||
260 | unsigned long flags; | ||
265 | 261 | ||
266 | union ttype_ptr_union { | 262 | union ttype_ptr_union { |
267 | struct sas_task *io_task_ptr; /* When ttype==io_task */ | 263 | struct sas_task *io_task_ptr; /* When ttype==io_task */ |