Commit 2acadb1
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| |||
0 commit comments