提交 11cdc06e 编写于 作者: J Jason Yan 提交者: Xie XiuQi

scsi: libsas: fix race of setting phy linkrate with lldd

hulk inclusion
category: bugfix
bugzilla: NA
CVE: NA

---------------------------

The linkrate for direct phys is set by lldd. We should not set it
because the phy event is async with the lldd events.

After commit 24fa9796a5b0 ("{topost} scsi: libsas: re-init the
negotiated_linkrate when phy down v2") has already set this in
sas_phy_disconnected() and this function is directly called by the lldd,
we do not need this in sas_deform_port().

Fixes: 6dd8639f22e5 ("scsi: libsas: re-init the negotiated_linkrate when phy down")
Signed-off-by: NJason Yan <yanaijie@huawei.com>
Reviewed-by: Nzhengbin <zhengbin13@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 9ca96b5d
...@@ -215,8 +215,6 @@ void sas_deform_port(struct asd_sas_phy *phy, int gone) ...@@ -215,8 +215,6 @@ void sas_deform_port(struct asd_sas_phy *phy, int gone)
struct domain_device *dev; struct domain_device *dev;
unsigned long flags; unsigned long flags;
phy->phy->negotiated_linkrate = SAS_LINK_RATE_UNKNOWN;
if (!port) if (!port)
return; /* done by a phy event */ return; /* done by a phy event */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册