Files
linux/drivers/scsi
Ye Bin dce5c4afd0 scsi: core: Clear driver private data when retrying request
After commit 1bad6c4a57 ("scsi: zero per-cmd private driver data for each
MQ I/O"), the xen-scsifront/virtio_scsi/snic drivers all removed code that
explicitly zeroed driver-private command data.

In combination with commit 464a00c9e0 ("scsi: core: Kill DRIVER_SENSE"),
after virtio_scsi performs a capacity expansion, the first request will
return a unit attention to indicate that the capacity has changed. And then
the original command is retried. As driver-private command data was not
cleared, the request would return UA again and eventually time out and fail.

Zero driver-private command data when a request is retried.

Fixes: f7de50da14 ("scsi: xen-scsifront: Remove code that zeroes driver-private command data")
Fixes: c2bb87318b ("scsi: virtio_scsi: Remove code that zeroes driver-private command data")
Fixes: c3006a9264 ("scsi: snic: Remove code that zeroes driver-private command data")
Signed-off-by: Ye Bin <yebin10@huawei.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20250217021628.2929248-1-yebin@huaweicloud.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2025-02-20 21:20:58 -05:00
..
2024-12-09 21:59:52 -05:00
2024-12-09 21:59:52 -05:00
2024-12-09 21:59:52 -05:00
2024-12-09 21:59:52 -05:00
2024-12-09 21:59:52 -05:00
2024-12-09 21:59:52 -05:00
2024-12-09 21:59:52 -05:00
2024-12-09 21:59:52 -05:00
2024-12-09 21:59:52 -05:00
2024-12-09 21:59:52 -05:00
2024-03-10 18:15:48 -04:00
2024-12-09 21:59:52 -05:00
2024-12-09 21:59:52 -05:00
2025-01-02 13:42:35 -05:00
2024-12-09 21:59:52 -05:00
2024-12-09 21:59:52 -05:00
2024-12-09 21:59:52 -05:00
2025-01-02 13:46:45 -05:00
2024-08-12 22:05:50 -04:00
2024-08-12 22:05:50 -04:00
2024-12-09 21:59:52 -05:00
2024-12-09 21:59:52 -05:00
2024-06-20 15:19:17 -06:00
2024-12-09 21:59:52 -05:00