scsi: hisi_sas: Delete unused lock in hisi_sas_port_notify_formed()
authorYihang Li <liyihang9@huawei.com>
Tue, 11 Jul 2023 03:15:00 +0000 (11:15 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sun, 23 Jul 2023 19:18:25 +0000 (15:18 -0400)
commit29f45ed18aa9b75b99126ea675dd29757b621073
treeec48c0aceb17c49de2affb6f6d5a0d1ab27139bb
parent32be33747d5dd46dde869de390e434f3deb25d2e
scsi: hisi_sas: Delete unused lock in hisi_sas_port_notify_formed()

Currently spinlock hisi_hba->lock is used by both interrupts and threads
which requires the use of spin_lock_irqsave()/spin_unlock_irqrestore().
However, some places still use spin_lock()/spin_unlock().  Reviewing the
code revealed that it is unnecessary to use hisi_hba->lock in the function
hisi_sas_port_notify_formed() which is the only place that uses the
spinlock in interrupt context. So delete unused lock in
hisi_sas_port_notify_formed().

Signed-off-by: Yihang Li <liyihang9@huawei.com>
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Link: https://lore.kernel.org/r/1689045300-44318-4-git-send-email-chenxiang66@hisilicon.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_main.c