Re: [PATCH v6 00/10] scsi:scsi_debug: Add error injection for single device

From: Martin K. Petersen
Date: Tue Oct 24 2023 - 22:20:20 EST


On Tue, 10 Oct 2023 17:20:41 +0800, Wenchao Hao wrote:

> The original error injection mechanism was based on scsi_host which
> could not inject fault for a single SCSI device.
>
> This patchset provides the ability to inject errors for a single
> SCSI device. Now we support inject timeout errors, queuecommand
> errors, and hostbyte, driverbyte, statusbyte, and sense data for
> specific SCSI Command. Two new error injection is defined to make
> abort command or reset LUN failed.
>
> [...]

Applied to 6.7/scsi-queue, thanks!

[01/10] scsi: scsi_debug: create scsi_debug directory in the debugfs filesystem
https://git.kernel.org/mkp/scsi/c/6e2d15f59b1c
[02/10] scsi: scsi_debug: Add interface to manage single device's error inject
https://git.kernel.org/mkp/scsi/c/a9996d722b11
[03/10] scsi: scsi_debug: Define grammar to remove added error injection
https://git.kernel.org/mkp/scsi/c/962d77cd4c85
[04/10] scsi: scsi_debug: timeout command if the error is injected
https://git.kernel.org/mkp/scsi/c/32be8b6e22eb
[05/10] scsi: scsi_debug: Return failed value if the error is injected
https://git.kernel.org/mkp/scsi/c/33bccf55c20b
[06/10] scsi: scsi_debug: set command's result and sense data if the error is injected
https://git.kernel.org/mkp/scsi/c/33592274321e
[07/10] scsi: scsi_debug: Add new error injection abort failed
https://git.kernel.org/mkp/scsi/c/5551ce928805
[08/10] scsi: scsi_debug: Add new error injection reset lun failed
https://git.kernel.org/mkp/scsi/c/0267811625e1
[09/10] scsi: scsi_debug: Add debugfs interface to fail target reset
https://git.kernel.org/mkp/scsi/c/f084fe52c640
[10/10] scsi: scsi_debug: Add param to control sdev's allow_restart
https://git.kernel.org/mkp/scsi/c/573c2d066eb9

--
Martin K. Petersen Oracle Linux Engineering