linux/drivers/scsi/hisi_sas
Xiang Chen 29e2bac874 scsi: hisi_sas: Fix some issues related to asd_sas_port->phy_list
Most places that use asd_sas_port->phy_list are protected by spinlock
asd_sas_port->phy_list_lock, however there are still some places which miss
grabbing the lock. Add it in function hisi_sas_refresh_port_id() when
accessing asd_sas_port->phy_list. This carries a risk that list mutates
while at the same time dropping the lock in function
hisi_sas_send_ata_reset_each_phy(). Read asd_sas_port->phy_mask instead of
accessing asd_sas_port->phy_list to avoid this risk.

Link: https://lore.kernel.org/r/1639999298-244569-6-git-send-email-chenxiang66@hisilicon.com
Acked-by: John Garry <john.garry@huawei.com>
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2021-12-22 23:38:29 -05:00
..
hisi_sas_main.c scsi: hisi_sas: Fix some issues related to asd_sas_port->phy_list 2021-12-22 23:38:29 -05:00
hisi_sas_v1_hw.c scsi: hisi_sas: Switch to attribute groups 2021-10-16 21:45:55 -04:00
hisi_sas_v2_hw.c scsi: hisi_sas: Switch to attribute groups 2021-10-16 21:45:55 -04:00
hisi_sas_v3_hw.c scsi: libsas: Don't always drain event workqueue for HA resume 2021-12-22 23:38:29 -05:00
hisi_sas.h scsi: hisi_sas: Pass abort structure for internal abort 2021-12-16 22:59:57 -05:00
Kconfig scsi: hisi_sas: Enable debugfs support by default 2021-01-26 23:02:11 -05:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00