Re: [PATCH v3] scsi: core: clear driver private data when retry request

Martin K. Petersen
2025-02-21T03:28:04Z

On Mon, 17 Feb 2025 10:16:28 +0800, Ye Bin wrote:

> After commit 1bad6c4a57ef
> ("scsi: zero per-cmd private driver data for each MQ I/O"),
> xen-scsifront/virtio_scsi/snic driver remove code that zeroes
> driver-private command data. If request do retry will lead to
> driver-private command data remains. Before commit 464a00c9e0ad
> ("scsi: core: Kill DRIVER_SENSE") if virtio_scsi do capacity
> expansion, first request may return UA then request will do retry,
> as driver-private command data remains, request will return UA
> again. As a result, the request keeps retrying, and the request
> times out and fails.
> So zeroes driver-private command data when request do retry.
>
> [...]

Applied to 6.14/scsi-fixes, thanks!

[1/1] scsi: core: clear driver private data when retry request
https://git.kernel.org/mkp/scsi/c/dce5c4afd035

--
Martin K. Petersen Oracle Linux Engineering