public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH blktests 0/7] Skip tests if scsi_debug module is already loaded and in use
@ 2026-03-24  5:49 Shin'ichiro Kawasaki
  2026-03-24  5:49 ` [PATCH blktests 1/7] check: move fallback device handling into _check_and_call_test_device() Shin'ichiro Kawasaki
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Shin'ichiro Kawasaki @ 2026-03-24  5:49 UTC (permalink / raw)
  To: linux-block; +Cc: Shin'ichiro Kawasaki

When blktests users have scsi_debug devices configured for purposes other than
blktests, running blktests currently unloads scsi_debug unconditionally and
breaks the existing setup. To avoid disrupting such configurations, this patch
series improves blktests to check whether the scsi_debug module is already
loaded and in use, and to skip test cases that require scsi_debug in that
situation.

This series was originally proposed as a GitHub Pull Request [1]. Disha Goel and
I worked on the patches. The first four patches fix pre-existing problems found
while working on this series. The fifth patch implements the improvement
described above. The last two patches fix two additional problems that were
found during this work.

[1] https://github.com/linux-blktests/blktests/pull/218

Disha Goel (1):
  Skip tests if scsi_debug module is already loaded and in use

Shin'ichiro Kawasaki (6):
  check: move fallback device handling into
    _check_and_call_test_device()
  check: call _unload_module() after fallback_device_cleanup()
  check: do not create fallback device when other requirements are not
    met
  check: call fallback_device() in the same bash context
  common/scsi_debug: ensure scsi_debug is loadable before loading it
  zbd/012: add missing scsi_debug check

 check             | 84 ++++++++++++++++++++++++-----------------------
 common/scsi_debug | 31 ++++++++++++++---
 tests/block/009   |  2 +-
 tests/block/025   |  2 +-
 tests/block/028   |  2 +-
 tests/block/032   |  2 +-
 tests/loop/004    |  2 +-
 tests/md/002      |  2 +-
 tests/scsi/007    |  2 +-
 tests/scsi/009    |  2 +-
 tests/srp/rc      |  2 +-
 tests/zbd/008     |  2 +-
 tests/zbd/009     |  2 +-
 tests/zbd/010     |  2 +-
 tests/zbd/012     |  1 +
 15 files changed, 83 insertions(+), 57 deletions(-)

-- 
2.49.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-04-04  8:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-24  5:49 [PATCH blktests 0/7] Skip tests if scsi_debug module is already loaded and in use Shin'ichiro Kawasaki
2026-03-24  5:49 ` [PATCH blktests 1/7] check: move fallback device handling into _check_and_call_test_device() Shin'ichiro Kawasaki
2026-03-24  5:49 ` [PATCH blktests 2/7] check: call _unload_module() after fallback_device_cleanup() Shin'ichiro Kawasaki
2026-03-24  5:49 ` [PATCH blktests 3/7] check: do not create fallback device when other requirements are not met Shin'ichiro Kawasaki
2026-03-24  5:49 ` [PATCH blktests 4/7] check: call fallback_device() in the same bash context Shin'ichiro Kawasaki
2026-03-24  5:49 ` [PATCH blktests 5/7] Skip tests if scsi_debug module is already loaded and in use Shin'ichiro Kawasaki
2026-03-24  5:49 ` [PATCH blktests 6/7] common/scsi_debug: ensure scsi_debug is loadable before loading it Shin'ichiro Kawasaki
2026-03-24  5:49 ` [PATCH blktests 7/7] zbd/012: add missing scsi_debug check Shin'ichiro Kawasaki
2026-04-04  8:06 ` [PATCH blktests 0/7] Skip tests if scsi_debug module is already loaded and in use Shinichiro Kawasaki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox