]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: hisi_sas: Fix I/O errors caused by hardware port ID changes
authorXingui Yang <yangxingui@huawei.com>
Wed, 12 Mar 2025 09:51:35 +0000 (17:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:47:07 +0000 (07:47 +0200)
commit9e3014d786464b9df7bb7c3f54f205f593761349
tree9ff4557fba4d11ed82dc743f2066fd1cd2bd2553
parent39ebdc2d51096c395da8f0fd140fab68682e5317
scsi: hisi_sas: Fix I/O errors caused by hardware port ID changes

[ Upstream commit daff37f00c7506ca322ccfce95d342022f06ec58 ]

The hw port ID of phy may change when inserting disks in batches, causing
the port ID in hisi_sas_port and itct to be inconsistent with the hardware,
resulting in I/O errors. The solution is to set the device state to gone to
intercept I/O sent to the device, and then execute linkreset to discard and
find the disk to re-update its information.

Signed-off-by: Xingui Yang <yangxingui@huawei.com>
Link: https://lore.kernel.org/r/20250312095135.3048379-3-yangxingui@huawei.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/hisi_sas/hisi_sas_main.c