mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-08 15:48:23 +00:00
scsi: megaraid_sas: Increase timeout by 1 sec for non-RAID fastpath IOs
Hardware could time out Fastpath IOs one second earlier than the timeout provided by the host. For non-RAID devices, driver provides timeout value based on OS provided timeout value. Under certain scenarios, if the OS provides a timeout value of 1 second, due to above behavior hardware will timeout immediately. Increase timeout value for non-RAID fastpath IOs by 1 second. Signed-off-by: Shivasharan S <shivasharan.srikanteshwara@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
3c6c122cfc
commit
3239b8cd28
1 changed files with 3 additions and 0 deletions
|
@ -2980,6 +2980,9 @@ megasas_build_syspd_fusion(struct megasas_instance *instance,
|
||||||
pRAID_Context->timeout_value = cpu_to_le16(os_timeout_value);
|
pRAID_Context->timeout_value = cpu_to_le16(os_timeout_value);
|
||||||
pRAID_Context->virtual_disk_tgt_id = cpu_to_le16(device_id);
|
pRAID_Context->virtual_disk_tgt_id = cpu_to_le16(device_id);
|
||||||
} else {
|
} else {
|
||||||
|
if (os_timeout_value)
|
||||||
|
os_timeout_value++;
|
||||||
|
|
||||||
/* system pd Fast Path */
|
/* system pd Fast Path */
|
||||||
io_request->Function = MPI2_FUNCTION_SCSI_IO_REQUEST;
|
io_request->Function = MPI2_FUNCTION_SCSI_IO_REQUEST;
|
||||||
timeout_limit = (scmd->device->type == TYPE_DISK) ?
|
timeout_limit = (scmd->device->type == TYPE_DISK) ?
|
||||||
|
|
Loading…
Add table
Reference in a new issue