diff options
| author | Tyrel Datwyler <[email protected]> | 2019-03-20 18:41:50 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2019-03-21 00:12:31 +0000 |
| commit | 7205981e045e752ccf96cf6ddd703a98c59d4339 (patch) | |
| tree | fbb3c6318cf5d52373ba401355446e076d1ac350 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | scsi: hisi_sas: Add softreset in hisi_sas_I_T_nexus_reset() (diff) | |
| download | kernel-7205981e045e752ccf96cf6ddd703a98c59d4339.tar.gz kernel-7205981e045e752ccf96cf6ddd703a98c59d4339.zip | |
scsi: ibmvscsi: Protect ibmvscsi_head from concurrent modificaiton
For each ibmvscsi host created during a probe or destroyed during a remove
we either add or remove that host to/from the global ibmvscsi_head
list. This runs the risk of concurrent modification.
This patch adds a simple spinlock around the list modification calls to
prevent concurrent updates as is done similarly in the ibmvfc driver and
ipr driver.
Fixes: 32d6e4b6e4ea ("scsi: ibmvscsi: add vscsi hosts to global list_head")
Cc: <[email protected]> # v4.10+
Signed-off-by: Tyrel Datwyler <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions
