scsi: hisi_sas: prevent ops->hardreset() from executing at controller reset
driver inclusion category: bugfix bugzilla: NA CVE: NA ------------------------------------------------- In the function of hisi_sas_init_device(), we add ops->hardreset() to clear affiliation of STP target port or handle [STP pending] state recently. Function hisi_sas_init_device() will be call when device found or controller reset. At controller reset, we call hisi_sas_init_device to re-init the disks by TMF or softreset(in case of ATA devices), so ops->hardreset() is unnecessary and it also will cause some delay at controller reset. Besides, ops->hardreset() will call sas_ex_phy_discover() and it set attached_sas_addr of ex_phy base on the respond of smp command: SMP_DISCOVER. If we call this function at error handle, it may misleading the handle flow of libsas. So we prevent ops->hardreset() from executing at controller reset. Signed-off-by: NLuo Jiaxing <luojiaxing@huawei.com> Reviewed-by: NXiang Chen <chenxiang66@hisilicon.com> Signed-off-by: NJohn Garry <john.garry@huawei.com> Reviewed-by: NJason Yan <yanaijie@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录