]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: hisi_sas: Use libsas internal abort support
authorJohn Garry <john.garry@huawei.com>
Fri, 11 Mar 2022 12:23:52 +0000 (20:23 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 15 Mar 2022 03:33:24 +0000 (23:33 -0400)
commitd7b46e6c2037e01db0cd57b0b91baf50d18870fa
treef2a6990932bb529e6ef1db58fc93544d38a8d517
parent22469c1958ddbd019d1c6bcb30c99ffd78eed832
scsi: hisi_sas: Use libsas internal abort support

Use the common libsas internal abort functionality.

In addition, this driver has special handling for internal abort timeouts -
specifically whether to reset the controller in that instance, so extend
the API for that.

Timeout is now increased to 20 * Hz from 6 * Hz.

We also retry for failure now, but this should not make a difference.

Link: https://lore.kernel.org/r/1647001432-239276-5-git-send-email-john.garry@huawei.com
Tested-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Acked-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas.h
drivers/scsi/hisi_sas/hisi_sas_main.c
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
drivers/scsi/libsas/sas_scsi_host.c
include/scsi/libsas.h