scsi: hisi_sas: Change DMA setup lock timeout to 2.5s
authorXingui Yang <yangxingui@huawei.com>
Mon, 15 May 2023 02:41:20 +0000 (10:41 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 17 May 2023 01:36:40 +0000 (21:36 -0400)
commita090fc97617b1b2d0dc8dcb418cc614573a1a8be
tree7ef49402f8cb34e5eb71eb65f6ec269bcb97e568
parentb68daae9660b45a0bb3ac9df1f1746d15693d254
scsi: hisi_sas: Change DMA setup lock timeout to 2.5s

DMA setup lock timeout protection is added when DMA setup frames are
received. It's a function outside the protocol and used to prevent SATA
disk I/Os from being delivered for a long time. The default value is 100ms,
it's too strict and easily triggered timeout when the disk is overloaded or
faulty. Based on the average I/O latency of 300 disks, we adjust the value
to 2.5s.

Signed-off-by: Xingui Yang <yangxingui@huawei.com>
Signed-off-by: Yihang Li <liyihang9@huawei.com>
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Link: https://lore.kernel.org/r/1684118481-95908-3-git-send-email-chenxiang66@hisilicon.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c