Skip to content

Commit 2acadb1

Browse files
committed
common/scsi_debug: Use _unload_module in _exit_scsi_debug
It may fails with modprobe -r scsi-debug during stress block/037 test, fix it by using _unload_module instead of modprobe -r. ==================3350 block/037 (test cgroup vs. scsi_debug rebind) [failed] runtime 0.612s ... 0.501s --- tests/block/037.out 2025-05-27 02:53:20.099293638 -0400 +++ /root/blktests/results/nodev/block/037.out.bad 2025-05-27 06:19:51.200678129 -0400 @@ -1,2 +1,4 @@ Running block/037 +modprobe: FATAL: Module scsi_debug is in use. +scsi_debug 172032 1 Test complete Link: #174 Signed-off-by: Yi Zhang <[email protected]>
1 parent 283923d commit 2acadb1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

common/scsi_debug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ _exit_scsi_debug() {
180180
udevadm settle
181181

182182
if _module_file_exists scsi_debug; then
183-
modprobe -r scsi_debug
183+
_unload_module scsi_debug 10
184184
return
185185
fi
186186

0 commit comments

Comments
 (0)