Skip to content

Conversation

@disgoel
Copy link

@disgoel disgoel commented Nov 26, 2025

Several tests across block/, scsi/, dm/, md/, zbd/, nvme/ require exclusive access to the scsi_debug module because they load, unload or reconfigure it. When scsi_debug is already loaded by the environment (e.g., by another driver or a previous setup), these tests fail with:

modprobe: FATAL: Module scsi_debug is in use.
Unloading scsi_debug failed
# lsmod | grep scsi_debug
scsi_debug            327680  4

Instead of modifying common rc files—which would overskip unrelated tests, this patch adds _module_not_in_use scsi_debug only to the tests that actually depend on exclusive access to scsi_debug.

Several tests across block/, scsi/, dm/, md/, zbd/, nvme/ require exclusive
access to the scsi_debug module because they load, unload or reconfigure it.
When scsi_debug is already loaded by the environment (e.g., by another
driver or a previous setup), these tests fail with:

modprobe: FATAL: Module scsi_debug is in use.
Unloading scsi_debug failed

scsi_debug            327680  4

Instead of modifying common rc files—which would overskip unrelated tests,
this patch adds "_module_not_in_use scsi_debug" only to the tests that
actually depend on exclusive access to scsi_debug.

Signed-off-by: Disha Goel <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant