aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mvsas/mv_sas.h
diff options
context:
space:
mode:
authorAndy Yan <ayan@marvell.com>2009-05-11 10:19:25 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-05-23 16:44:08 -0400
commit9870d9a2428550e7ac3164a26306ad07a99051ae (patch)
tree73f69109c51ddc4f6a33475ad848e437f0cef66a /drivers/scsi/mvsas/mv_sas.h
parent77db27cdcbc8ed371fd2f154cbadc7ff32ae8901 (diff)
[SCSI] mvsas: performance improvement using domain_device->lldd_dev
Using sticky field to improve retrieve performance by eliminating some lookups in . Remove some spurious casts. Signed-off-by: Ying Chu <jasonchu@marvell.com> Signed-off-by: Andy Yan <ayan@marvell.com> Signed-off-by: Ke Wei <kewei@marvell.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/mvsas/mv_sas.h')
-rw-r--r--drivers/scsi/mvsas/mv_sas.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/mvsas/mv_sas.h b/drivers/scsi/mvsas/mv_sas.h
index 93735edff507..aa2270af1bac 100644
--- a/drivers/scsi/mvsas/mv_sas.h
+++ b/drivers/scsi/mvsas/mv_sas.h
@@ -231,7 +231,9 @@ struct mvs_phy {
231}; 231};
232 232
233struct mvs_device { 233struct mvs_device {
234 struct list_head dev_entry;
234 enum sas_dev_type dev_type; 235 enum sas_dev_type dev_type;
236 struct mvs_info *mvi_info;
235 struct domain_device *sas_device; 237 struct domain_device *sas_device;
236 u32 attached_phy; 238 u32 attached_phy;
237 u32 device_id; 239 u32 device_id;
@@ -239,7 +241,6 @@ struct mvs_device {
239 u8 taskfileset; 241 u8 taskfileset;
240 u8 dev_status; 242 u8 dev_status;
241 u16 reserved; 243 u16 reserved;
242 struct list_head dev_entry;
243}; 244};
244 245
245struct mvs_slot_info { 246struct mvs_slot_info {