summaryrefslogtreecommitdiff
path: root/drivers/scsi/mvsas/mv_sas.h
diff options
context:
space:
mode:
authorAndy Yan <ayan@marvell.com>2009-05-11 22:19:25 +0800
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-05-23 15:44:08 -0500
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 {
};
struct mvs_device {
+ struct list_head dev_entry;
enum sas_dev_type dev_type;
+ struct mvs_info *mvi_info;
struct domain_device *sas_device;
u32 attached_phy;
u32 device_id;
@@ -239,7 +241,6 @@ struct mvs_device {
u8 taskfileset;
u8 dev_status;
u16 reserved;
- struct list_head dev_entry;
};
struct mvs_slot_info {