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

From: Michael Kelley
Date: Fri Dec 18 2020 - 10:15:40 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
> ---
> drivers/scsi/storvsc_drv.c | 45 +++++++++++++++++++++-----------------
> 1 file changed, 25 insertions(+), 20 deletions(-)
>

Reviewed-by: Michael Kelley <mikelley@xxxxxxxxxxxxx>