[PATCH] ibmvfc: Protect vhost->task_set increment by the host lock

Martin K. Petersen martin.petersen at oracle.com
Wed Sep 23 07:39:34 AEST 2020


Brian,

> In the discovery thread, ibmvfc does a vhost->task_set++ without any
> lock held. This could result in two targets getting the same cancel
> key, which could have strange effects in error recovery.  The actual
> probability of this occurring should be extremely small, since this
> should all be done in a single threaded loop from the discovery
> thread, but let's fix it up anyway to be safe.

Applied to 5.10/scsi-staging, thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering


More information about the Linuxppc-dev mailing list