diff options
author | 2024-01-31 10:51:08 -0800 | |
---|---|---|
committer | 2024-02-05 20:51:36 -0500 | |
commit | 9bb36777d0a2a22f11264c36f91a2682bfedb9d4 (patch) | |
tree | 1b5773e1fe7da7a7ba5b5109d0f873da8cdcdf96 /scripts/generate_rust_analyzer.py | |
parent | scsi: lpfc: Change nlp state statistic counters into atomic_t (diff) | |
download | linux-rng-9bb36777d0a2a22f11264c36f91a2682bfedb9d4.tar.xz linux-rng-9bb36777d0a2a22f11264c36f91a2682bfedb9d4.zip |
scsi: lpfc: Protect vport fc_nodes list with an explicit spin lock
In attempt to reduce the amount of unnecessary shost_lock acquisitions in
the lpfc driver, replace shost_lock with an explicit fc_nodes_list_lock
spinlock when accessing vport->fc_nodes lists. Although vport memory
region is owned by shost->hostdata, it is driver private memory and an
explicit fc_nodes list lock for fc_nodes list mutations is more appropriate
than locking the entire shost.
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20240131185112.149731-14-justintee8345@gmail.com
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions