[PATCH 1/2] ibmvscsi: Protect ibmvscsi_head from concurrent modificaiton

Martin K. Petersen martin.petersen at oracle.com
Thu Mar 21 11:13:56 AEDT 2019


Tyrel,

> 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.

Applied to 5.1/scsi-fixes.

-- 
Martin K. Petersen	Oracle Linux Engineering


More information about the Linuxppc-dev mailing list