summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorDon Brace <don.brace@microsemi.com>2017-05-04 17:51:04 -0500
committerMartin K. Petersen <martin.petersen@oracle.com>2017-06-12 20:48:00 -0400
commitef8a52036268d0f8b5a77f6e34a1d09b0a7fdfdc (patch)
treef8f1709946cd41fcea3d1f893370cb54821b9c30 /drivers/scsi
parent8516a2db9aec293d983a729c23488acd688fece4 (diff)
downloadop-kernel-dev-ef8a52036268d0f8b5a77f6e34a1d09b0a7fdfdc.zip
op-kernel-dev-ef8a52036268d0f8b5a77f6e34a1d09b0a7fdfdc.tar.gz
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>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/hpsa.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
index 9fb30c4..2990897 100644
--- a/drivers/scsi/hpsa.c
+++ b/drivers/scsi/hpsa.c
@@ -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),
OpenPOWER on IntegriCloud