scsi: smartpqi: Improve handling of multipath failover
authorKevin Barnett <kevin.barnett@microchip.com>
Thu, 11 Jul 2024 19:47:03 +0000 (14:47 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 3 Aug 2024 02:08:35 +0000 (22:08 -0400)
commit57abab70a5e0179b5fff7c4a6dfdbcbcc97ca910
tree1b06f8d7813ed799efbe0f0b1de9bd6fc1720c77
parentf1393d52e6cda9c20f12643cbecf1e1dc357e0e2
scsi: smartpqi: Improve handling of multipath failover

Improve multipath failovers by mapping firmware errors into I/O errors.

In some rare instances, firmware does not return the proper error code for
I/O errors caused by a multipath path failure.

Map I/O errors returned by firmware into errors that help the multipath
layer to detect the failure of a path.

Reviewed-by: Gerry Morong <gerry.morong@microchip.com>
Reviewed-by: Scott Benesh <scott.benesh@microchip.com>
Reviewed-by: Scott Teel <scott.teel@microchip.com>
Reviewed-by: Mike McGowen <mike.mcgowen@microchip.com>
Signed-off-by: Kevin Barnett <kevin.barnett@microchip.com>
Signed-off-by: Don Brace <don.brace@microchip.com>
Link: https://lore.kernel.org/r/20240711194704.982400-5-don.brace@microchip.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/smartpqi/smartpqi_init.c