forked from Minki/linux
scsi: aacraid: Remove AAC_HIDE_DISK check in queue command
Earlier driver would scan throgh all supported buses and targets and add devices that responded. It would add devices that were _hidden_ by the fw. Driver would invalidate commands sent to _hidden_ devices via the AAC_HIDE_DISK check. Since the driver now adds only the devices that are supposed to be exposed, this code can be removed. Signed-off-by: Raghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
75be67cd15
commit
e51c4d703d
@ -1994,8 +1994,6 @@ static void aac_set_safw_attr_all_targets(struct aac_dev *dev)
|
|||||||
if (bus >= AAC_MAX_BUSES || target >= AAC_MAX_TARGETS)
|
if (bus >= AAC_MAX_BUSES || target >= AAC_MAX_TARGETS)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
dev->hba_map[bus][target].expose = expose_flag;
|
|
||||||
|
|
||||||
if (expose_flag != 0) {
|
if (expose_flag != 0) {
|
||||||
devtype = AAC_DEVTYPE_RAID_MEMBER;
|
devtype = AAC_DEVTYPE_RAID_MEMBER;
|
||||||
goto update_devtype;
|
goto update_devtype;
|
||||||
@ -2913,14 +2911,6 @@ int aac_scsi_cmd(struct scsi_cmnd * scsicmd)
|
|||||||
}
|
}
|
||||||
} else { /* check for physical non-dasd devices */
|
} else { /* check for physical non-dasd devices */
|
||||||
bus = aac_logical_to_phys(scmd_channel(scsicmd));
|
bus = aac_logical_to_phys(scmd_channel(scsicmd));
|
||||||
if (bus < AAC_MAX_BUSES && cid < AAC_MAX_TARGETS &&
|
|
||||||
(dev->hba_map[bus][cid].expose
|
|
||||||
== AAC_HIDE_DISK)){
|
|
||||||
if (scsicmd->cmnd[0] == INQUIRY) {
|
|
||||||
scsicmd->result = DID_NO_CONNECT << 16;
|
|
||||||
goto scsi_done_ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (bus < AAC_MAX_BUSES && cid < AAC_MAX_TARGETS &&
|
if (bus < AAC_MAX_BUSES && cid < AAC_MAX_TARGETS &&
|
||||||
dev->hba_map[bus][cid].devtype
|
dev->hba_map[bus][cid].devtype
|
||||||
|
@ -1339,8 +1339,6 @@ struct fib {
|
|||||||
#define AAC_DEVTYPE_RAID_MEMBER 1
|
#define AAC_DEVTYPE_RAID_MEMBER 1
|
||||||
#define AAC_DEVTYPE_ARC_RAW 2
|
#define AAC_DEVTYPE_ARC_RAW 2
|
||||||
#define AAC_DEVTYPE_NATIVE_RAW 3
|
#define AAC_DEVTYPE_NATIVE_RAW 3
|
||||||
#define AAC_EXPOSE_DISK 0
|
|
||||||
#define AAC_HIDE_DISK 3
|
|
||||||
|
|
||||||
#define AAC_SAFW_RESCAN_DELAY 10
|
#define AAC_SAFW_RESCAN_DELAY 10
|
||||||
|
|
||||||
@ -1350,7 +1348,6 @@ struct aac_hba_map_info {
|
|||||||
u8 reset_state; /* 0 - no reset, 1..x - */
|
u8 reset_state; /* 0 - no reset, 1..x - */
|
||||||
/* after xth TM LUN reset */
|
/* after xth TM LUN reset */
|
||||||
u16 qd_limit;
|
u16 qd_limit;
|
||||||
u8 expose; /*checks if to expose or not*/
|
|
||||||
u32 scan_counter;
|
u32 scan_counter;
|
||||||
struct aac_ciss_identify_pd *safw_identify_resp;
|
struct aac_ciss_identify_pd *safw_identify_resp;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user