support built-in scsi_debug
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest6 patches 5 repliesIn review
- v19 patches 10 repliesSuperseded
Changes in v2 from the cover letter
* 4th patch: improved to restore scsi_debug parameters modified during test
* Squashed last 5 patches into 2 patches as suggested
* Added Reviewed-by tags
* Noted srp test group in the last paragraph of the cover letter
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | common/rc: skip module file check if modules path does not existcommon/ | +1 | 1 reply | |
| 2/6 | common/scsi_debug, tests/*: re-define _have_scsi_debugcommon/ tests/ tests/ +12 more | +26 | 1 reply | |
| 3/6 | common/scsi_debug: factor out _setup_scsi_debug_varscommon/ | +20 | 1 reply | |
| 4/6 | common/scsi_debug: introduce _configure_scsi_debugcommon/ | +111 | 0 replies | |
| 5/6 | scsi/{004,005}: allow to run with built-in scsi_debugtests/ tests/ | +4 | 0 replies | |
| 6/6 | block/{001,002,027}: allow to run with built-in scsi_debug and sd_modtests/ tests/ tests/ | +7 | 1 reply |
Reviews trailers per patch
5 of 6 patches have a Reviewed-by or Acked-by.
| Patch | Chaitanya Kulkarni | Johannes Thumshirn |
|---|---|---|
| 1/6 | R-b | R-b |
| 2/6 | R-b | R-b |
| 3/6 | R-b | R-b |
| 4/6 | ||
| 5/6 | R-b | |
| 6/6 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH blktests v2 0/6] support built-in scsi_debug
From: Shin'ichiro Kawasaki <[email protected]>
In the past, there was an issue related to scsi_debug module unload [1]. At that time, it was suggested to modify blktests not to rely on module load and unload. Based on that discussion, blktests was modified not to load or unload null_blk driver [2][3]. As of today, a number of test cases with null_blk can be run with built-in null_blk.
This series introduces similar support for built-in scsi_debug. This patch adds a new helper function _configure_scsi_debug which can set up scsi_debug device without module load and unload. Also it enables 5 test cases to run with built- in scsi_debug.
The first patch in this series fixes a minor issue found during this work. Next two patches modify common/scsi_debug functions as preparation. The 4th patch introduces the new function _configure_scsi_debug. Following 5 patches modify the 5 test cases so that they can run with built-in scsi debug.
Of note is that still srp test group and 9 test cases in other test groups are left to require loadable scsi_debug. The srp test group and 8 of the 9 test cases can not be run with built-in scsi_debug because the parameters they set are read-only on sysfs. The other one test case scsi/007 has other failure symptom now, so I leave it untouched at this moment.
[1] https://lore.kernel.org/linux-block/[email protected]/
[2] https://lore.kernel.org/linux-block/[email protected]/
[3] https://lore.kernel.org/linux-block/[email protected]/
Changes from v1:
* 4th patch: improved to restore scsi_debug parameters modified during test
* Squashed last 5 patches into 2 patches as suggested
* Added Reviewed-by tags
* Noted srp test group in the last paragraph of the cover letter
Shin'ichiro Kawasaki (6):
common/rc: skip module file check if modules path does not exist common/scsi_debug, tests/*: re-define _have_scsi_debug common/scsi_debug: factor out _setup_scsi_debug_vars common/scsi_debug: introduce _configure_scsi_debug scsi/{004,005}: allow to run with built-in scsi_debug block/{001,002,027}: allow to run with built-in scsi_debug and sd_mod
common/rc | 1 + common/scsi_debug | 138 ++++++++++++++++++++++++++++++++++++++++++---- tests/block/001 | 4 +- tests/block/002 | 5 +- tests/block/009 | 3 +- tests/block/025 | 2 +- tests/block/027 | 6 +- tests/block/028 | 2 +- tests/block/032 | 3 +- tests/loop/004 | 5 +- tests/scsi/004 | 2 +- tests/scsi/005 | 5 +- tests/scsi/007 | 2 +- tests/zbd/008 | 5 +- tests/zbd/009 | 2 +- tests/zbd/010 | 2 +- 16 files changed, 156 insertions(+), 31 deletions(-)
Signature · 1 line
2.40.0