mpt2sas: Added raid transport support
PATCH 6/10 mpt2sas: Added raid transport support
Adding support for raid transport layer. This will provide sysfs attributes containing raid level, state, and resync rate.
MPT2SAS module will select RAID_ATTRS.
Signed-off-by Kashyap Desai <[email protected]>
Reviewed-by Eric Moore <[email protected]>
---
drivers/scsi/mpt2sas/Kconfig +1 -0
@@ -44,6 +44,7 @@ config SCSI_MPT2SAS tristate "LSI MPT Fusion SAS 2.0 Device Driver" depends on PCI && SCSI select SCSI_SAS_ATTRS + select RAID_ATTRS ---help--- This driver supports PCI-Express SAS 6Gb/s Host Adapters.
drivers/scsi/mpt2sas/mpt2sas_base.h +2 -0
@@ -323,6 +323,7 @@ struct _sas_device {* @device_info: bitfield provides detailed info about the hidden components * @num_pds: number of hidden raid components * @responding: used in _scsih_raid_device_mark_responding +* @percent_complete: resync percent complete */ struct _raid_device {struct list_head list;
@@ -336,6 +337,7 @@ struct _raid_device {u32 device_info;u8 num_pds;u8 responding; +u8 percent_complete; };/**
drivers/scsi/mpt2sas/mpt2sas_scsih.c +186 -4
255 lines not on this page · raw message
include/linux/raid_class.h +1 -0
@@ -32,6 +32,7 @@ enum raid_level {RAID_LEVEL_0 ,RAID_LEVEL_1 ,RAID_LEVEL_10 , +RAID_LEVEL_1E ,RAID_LEVEL_3 ,RAID_LEVEL_4 , RAID_LEVEL_5,