]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: hisi_sas: Don't hard reset disk during controller reset
authorLuo Jiaxing <luojiaxing@huawei.com>
Thu, 11 Apr 2019 12:46:42 +0000 (20:46 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 13 Apr 2019 01:30:12 +0000 (21:30 -0400)
commitf447f6ec3febc6601a30b40e374a98242284ffb1
treeff4dd2aadbad3ae48bc20e9aa1ecaa0ef3028be6
parentf785b9fc7c2f7eeac1b828d14e621c12f2631ce6
scsi: hisi_sas: Don't hard reset disk during controller reset

In the function of hisi_sas_init_device(), we added ops->hardreset() to
clear affiliation of STP target port or handle [STP pending] state.

Function hisi_sas_init_device() will be called when a device is found or
during controller reset. At controller reset, we call
hisi_sas_init_device() to re-init the disks, so calling hardreset() is
unnecessary and it also will cause some delay at controller reset.

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_main.c