diff options
author | Don Brace <don.brace@microsemi.com> | 2017-05-04 17:51:04 -0500 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-06-12 20:48:00 -0400 |
commit | ef8a52036268d0f8b5a77f6e34a1d09b0a7fdfdc (patch) | |
tree | f8f1709946cd41fcea3d1f893370cb54821b9c30 /drivers/scsi | |
parent | 8516a2db9aec293d983a729c23488acd688fece4 (diff) | |
download | op-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.c | 3 |
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), |