From: Don Brace Date: Thu, 4 May 2017 22:51:04 +0000 (-0500) Subject: scsi: hpsa: do not reset enclosures X-Git-Tag: Ubuntu-5.13.0-19.19~13136^2~253 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=ef8a52036268d0f8b5a77f6e34a1d09b0a7fdfdc;p=mirror_ubuntu-jammy-kernel.git scsi: hpsa: do not reset enclosures Prevent enclosure resets. Reviewed-by: Scott Benesh Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Don Brace Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 9fb30c4aae82..2990897b40e0 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),