Commit 573c2d0
scsi: scsi_debug: Add param to control sdev's allow_restart
Add new module param "allow_restart" to control scsi_device's allow_restart
flag. This flag determines if EH is triggered after a command completes
with sense_key 0x6, ASC 0x4 and ASCQ 0x2. EH would be triggered if
allow_restart=1 in this condition.
The new param can be used with the error injection capability to test how
commands completing with sense_key 0x6, ASC 0x4 and ASCQ 0x2 are handled.
Signed-off-by: Wenchao Hao <haowenchao2@huawei.com>
Link: https://lore.kernel.org/r/20231010092051.608007-11-haowenchao2@huawei.com
Tested-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent f084fe5 commit 573c2d0
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
843 | 843 | | |
844 | 844 | | |
845 | 845 | | |
| 846 | + | |
846 | 847 | | |
847 | 848 | | |
848 | 849 | | |
| |||
5478 | 5479 | | |
5479 | 5480 | | |
5480 | 5481 | | |
| 5482 | + | |
| 5483 | + | |
| 5484 | + | |
5481 | 5485 | | |
5482 | 5486 | | |
5483 | 5487 | | |
| |||
6202 | 6206 | | |
6203 | 6207 | | |
6204 | 6208 | | |
| 6209 | + | |
6205 | 6210 | | |
6206 | 6211 | | |
6207 | 6212 | | |
| |||
6274 | 6279 | | |
6275 | 6280 | | |
6276 | 6281 | | |
| 6282 | + | |
6277 | 6283 | | |
6278 | 6284 | | |
6279 | 6285 | | |
| |||
0 commit comments