]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
scsi: hpsa: do not reset enclosures
authorDon Brace <don.brace@microsemi.com>
Thu, 4 May 2017 22:51:04 +0000 (17:51 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Jun 2017 00:48:00 +0000 (20:48 -0400)
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>
drivers/scsi/hpsa.c

index 9fb30c4aae829792f55bc1b9b1683d960da8441e..2990897b40e0e09bde14e8e80bfb36368fe70550 100644 (file)
@@ -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),