scsi: smartpqi: Take drives offline when controller is offline
authorDavid Strahan <david.strahan@microchip.com>
Wed, 23 Apr 2025 18:32:25 +0000 (13:32 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 29 Apr 2025 01:43:26 +0000 (21:43 -0400)
commit32c79c268078daf5713d3b07b23077591b245d55
tree87d84b95ab7e3bcc5c1d559592980361afee3488
parent0af2f6be1b4281385b618cb86ad946eded089ac8
scsi: smartpqi: Take drives offline when controller is offline

During a controller lockup, the physical and logical drives under the
locked up controller are still listed at the OS level. I.e. the
controller is offline but the status of each drive is 'running'.

When the controller is unexpectedly taken offline, show its drives as
offline.

Reviewed-by: Scott Benesh <scott.benesh@microchip.com>
Reviewed-by: Mike McGowen <mike.mcgowen@microchip.com>
Signed-off-by: David Strahan <david.strahan@microchip.com>
Co-developed-by: Don Brace <don.brace@microchip.com>
Signed-off-by: Don Brace <don.brace@microchip.com>
Link: https://lore.kernel.org/r/20250423183229.538572-2-don.brace@microchip.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/smartpqi/smartpqi_init.c