Commit c1a57de
committed
throtl/rc,002: adjust to scsi_debug
Currently, the test case throtl/002 assumes that the test target device
is null_blk. For null_blk, it is possible to specify the page size as
the maximum I/O size during set up. However, in the case of scsi_debug,
the maximum I/O size is not configurable, causing the test case to fail
when the test case is extended to support scsi_debug.
To prevent the failure, set the maximum I/O size after the test device
is initialized, regardless of the device type. To achieve this, add a
new helper function _throtl_set_max_io_size() which modifies the sysfs
attribute max_sectors_kb to adjust the maximum I/O size for the device.
Suggested-by: Yu Kuai <[email protected]>
Reviewed-by: Chaitanya Kulkarni <[email protected]>
Signed-off-by: Shin'ichiro Kawasaki <[email protected]>1 parent f2c1330 commit c1a57de
2 files changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
117 | 121 | | |
118 | 122 | | |
119 | 123 | | |
| |||
0 commit comments