mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-19 02:04:19 +08:00
scsi: hpsa: do not reset enclosures
Prevent enclosure resets. Reviewed-by: Scott Benesh <scott.benesh@microsemi.com> Reviewed-by: Scott Teel <scott.tell@microsemi.com> Reviewed-by: Kevin Barnett <kevin.barnett@microsemi.com> Signed-off-by: Don Brace <don.brace@microsemi.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
8516a2db9a
commit
ef8a520362
@ -5853,6 +5853,9 @@ static int hpsa_eh_device_reset_handler(struct scsi_cmnd *scsicmd)
|
||||
return FAILED;
|
||||
}
|
||||
|
||||
if (dev->devtype == TYPE_ENCLOSURE)
|
||||
return SUCCESS;
|
||||
|
||||
/* if controller locked up, we can guarantee command won't complete */
|
||||
if (lockup_detected(h)) {
|
||||
snprintf(msg, sizeof(msg),
|
||||
|
Loading…
Reference in New Issue
Block a user