Commit e387a7e
throtl/rc: avoid test timeout caused by scsi_debug delay
When the kernel sets CONFIG_HZ=100, throtl/001 fails on the scsi_debug
device. scsi_debug adds 1 jiffy delay to each I/O which takes 0.01
second. Then 256 I/Os take around 2.56 seconds which is reported as 3
seconds. This makes the test case fail which expects I/Os to complete
within 1 second.
To avoid the unexpected failure, set zero value to the scsi_debug delay
parameter. With this, scsi_debug adds no delay, then the 256 I/Os will
take less than 1 second to complete the I/Os. This behavior will be the
same as null_blk.
Link: #221
Signed-off-by: Changhui Zhong <[email protected]>
Signed-off-by: Shin'ichiro Kawasaki <[email protected]>1 parent 9897976 commit e387a7e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
0 commit comments