]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: smartpqi: Add timeout value to RAID path requests to physical devices
authorMike McGowen <Mike.McGowen@microchip.com>
Thu, 6 Nov 2025 16:38:19 +0000 (10:38 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 8 Nov 2025 18:08:31 +0000 (13:08 -0500)
commitf3ecbba1aa715fd22234df3d2f3a0ecf7c458e36
tree3c92a9c08f3374cce3d9dee754b3eb57760dabf6
parent3a8660878839faadb4f1a6dd72c3179c1df56787
scsi: smartpqi: Add timeout value to RAID path requests to physical devices

Add a timeout value to requests sent to physical devices via the RAID
path.

A timeout value of zero means wait indefinitely, which may cause the OS
to issue Target Management Function (TMF) commands if the device does
not respond.

For input timeouts of 8 seconds or greater, the value sent to firmware
is reduced by 3 seconds to provide an earlier firmware timeout and allow
the OS additional time before timing out.

This change improves timeout handling between the driver, firmware, and
OS, helping to better manage device responsiveness and avoid indefinite
waits.

Reviewed-by: David Strahan <david.strahan@microchip.com>
Reviewed-by: Scott Benesh <scott.benesh@microchip.com>
Reviewed-by: Scott Teel <scott.teel@microchip.com>
Signed-off-by: Mike McGowen <Mike.McGowen@microchip.com>
Signed-off-by: Don Brace <don.brace@microchip.com>
Link: https://patch.msgid.link/20251106163823.786828-2-don.brace@microchip.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/smartpqi/smartpqi_init.c