Commit a0473bf
scsi: scsi_debug: Use scsi_block_requests() to block queues
The feature to block queues is quite dubious, since it races with in-flight
IO. Indeed, it seems unnecessary for block queues for any times we do so.
Anyway, to keep the same behaviour, use standard SCSI API to stop IO being
sent - scsi_{un}block_requests().
Signed-off-by: John Garry <john.g.garry@oracle.com>
Link: https://lore.kernel.org/r/20230327074310.1862889-6-john.g.garry@oracle.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent 25b80b2 commit a0473bf
1 file changed
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
363 | 362 | | |
364 | 363 | | |
365 | 364 | | |
| |||
5494 | 5493 | | |
5495 | 5494 | | |
5496 | 5495 | | |
5497 | | - | |
5498 | | - | |
| 5496 | + | |
5499 | 5497 | | |
5500 | 5498 | | |
5501 | 5499 | | |
5502 | | - | |
5503 | | - | |
| 5500 | + | |
| 5501 | + | |
| 5502 | + | |
| 5503 | + | |
| 5504 | + | |
| 5505 | + | |
| 5506 | + | |
| 5507 | + | |
5504 | 5508 | | |
5505 | 5509 | | |
5506 | 5510 | | |
| |||
5572 | 5576 | | |
5573 | 5577 | | |
5574 | 5578 | | |
5575 | | - | |
5576 | | - | |
5577 | | - | |
5578 | | - | |
5579 | 5579 | | |
5580 | 5580 | | |
5581 | 5581 | | |
| |||
0 commit comments