RE: [PATCH 2/3] scsi: storvsc: Resolve data race in storvsc_probe()

From: Dexuan Cui
Date: Thu Dec 17 2020 - 16:32:50 EST


> From: Andrea Parri (Microsoft) <parri.andrea@xxxxxxxxx>
> Sent: Thursday, December 17, 2020 12:33 PM
>
> vmscsi_size_delta can be written concurrently by multiple instances of
> storvsc_probe(), corresponding to multiple synthetic IDE/SCSI devices;
> cf. storvsc_drv's probe_type == PROBE_PREFER_ASYNCHRONOUS. Change
> the
> global variable vmscsi_size_delta to per-synthetic-IDE/SCSI-device.
>
> Suggested-by: Dexuan Cui <decui@xxxxxxxxxxxxx>
> Signed-off-by: Andrea Parri (Microsoft) <parri.andrea@xxxxxxxxx>
> Cc: "James E.J. Bottomley" <jejb@xxxxxxxxxxxxx>
> Cc: "Martin K. Petersen" <martin.petersen@xxxxxxxxxx>
> Cc: linux-scsi@xxxxxxxxxxxxxxx

Reviewed-by: Dexuan Cui <decui@xxxxxxxxxxxxx>