]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: libsas: Add spin_lock/unlock() to protect asd_sas_port->phy_list
authorXiang Chen <chenxiang66@hisilicon.com>
Mon, 20 Dec 2021 11:21:27 +0000 (19:21 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 23 Dec 2021 04:38:29 +0000 (23:38 -0500)
commitd1cad2990a07beabeb5165fd337b10115b7d0098
tree9f013c185ba121638a1ef6939629093b99d6bdfe
parent46a2bcc9a71ae24542482cbe3e5ae1b14541ceb7
scsi: libsas: Add spin_lock/unlock() to protect asd_sas_port->phy_list

Most places that use asd_sas_port->phy_list in libsas are protected by
spinlock asd_sas_port->phy_list_lock. However, there are still a few places
which miss the lock. Add it in those places.

Link: https://lore.kernel.org/r/1639999298-244569-5-git-send-email-chenxiang66@hisilicon.com
Reviewed-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>
drivers/scsi/libsas/sas_event.c