scsi: hisi_sas: Run I_T nexus resets in parallel for clear nexus reset
authorLuo Jiaxing <luojiaxing@huawei.com>
Mon, 7 Jun 2021 09:29:36 +0000 (17:29 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 10 Jun 2021 03:21:51 +0000 (23:21 -0400)
commit0f757339919d31533aeadbbfd62f2dd4a49e851f
tree513ad626a9df8a278f6fecca2d427190518ed21d
parent366da0da1f5fe4e7e702f5864a557e57f485431f
scsi: hisi_sas: Run I_T nexus resets in parallel for clear nexus reset

For a clear nexus reset operation, the I_T nexus resets are executed
serially for each device. For devices attached through an expander, this
may take 2s per device; so, in total, could take a long time.

Reduce the total time by running the I_T nexus resets in parallel through
async operations.

Link: https://lore.kernel.org/r/1623058179-80434-3-git-send-email-john.garry@huawei.com
Signed-off-by: Luo Jiaxing <luojiaxing@huawei.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