scsi: aacraid: Get correct lun count
Subsystems (2)
PATCH 2/2 scsi: aacraid: Delay for rescan worker needs to be 10 seconds
In reply to Raghava Aditya RenukuntaThe delay for the rescan worker needs to 10 seconds, missed the HZ in there.
Fixes a1367e4adee207fe (scsi: aacraid: Reschedule host scan in case of failure)
Signed-off-by Raghava Aditya Renukunta <[email protected]>
--- drivers/scsi/aacraid/aacraid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/aacraid/aacraid.h +1 -1
@@ -1340,7 +1340,7 @@ struct fib {#define AAC_DEVTYPE_ARC_RAW 2#define AAC_DEVTYPE_NATIVE_RAW 3 -#define AAC_SAFW_RESCAN_DELAY 10 +#define AAC_SAFW_RESCAN_DELAY (10 * HZ)struct aac_hba_map_info {__le32 rmw_nexus;/* nexus for native HBA devices */
Signature · 1 line
2.9.4
PATCH 1/2 scsi: aacraid: Get correct lun count
The correct lun count needs to be divided by 24, missed it in the previous patch set.
Fixes 4b00022753550055 (scsi: aacraid: Create helper functions to get lun info)
Signed-off-by Raghava Aditya Renukunta <[email protected]>
--- drivers/scsi/aacraid/aachba.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/aacraid/aachba.c +1 -1
@@ -1868,7 +1868,7 @@ static int aac_get_safw_ciss_luns(struct aac_dev *dev)static inline u32 aac_get_safw_phys_lun_count (struct aac_dev *dev) { -return get_unaligned_be32 (&dev->safw_phys_luns->list_length[0 ]); +return get_unaligned_be32 (&dev->safw_phys_luns->list_length[0 ])/24 ; }static inline u32 aac_get_safw_phys_bus (struct aac_dev *dev,int lun)
Signature · 1 line
2.9.4
Martin K. Petersen
AppliedRaghava,
Quoted 2 lines
The correct lun count needs to be divided by 24, missed it in the previous patch set.
Peculiar number.
Applied to 4.16/scsi-queue.
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Martin K. Petersen
AppliedRe: [PATCH 2/2] scsi: aacraid: Delay for rescan worker needs to be 10 seconds
In reply to Raghava Aditya RenukuntaRaghava,
Quoted 2 lines
The delay for the rescan worker needs to 10 seconds, missed the HZ in there.
Applied to 4.16/scsi-queue.
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering