Commit f51ee53
tests/srp: fix module loading issue during srp tests
The ib_isert/ib_srpt modules will be automatically loaded after the first
time rdma_rxe/siw setup, which will lead srp tests fail.
$ modprobe rdma_rxe
$ echo eno1 >/sys/module/rdma_rxe/parameters/add
$ lsmod | grep -E "ib_srpt|iscsi_target_mod|ib_isert"
ib_srpt 167936 0
ib_isert 139264 0
iscsi_target_mod 843776 1 ib_isert
target_core_mod 1069056 3 iscsi_target_mod,ib_srpt,ib_isert
rdma_cm 315392 5 rpcrdma,ib_srpt,ib_iser,ib_isert,rdma_ucm
ib_cm 344064 2 rdma_cm,ib_srpt
ib_core 1101824 10 rdma_cm,rdma_rxe,rpcrdma,ib_srpt,iw_cm,ib_iser,ib_isert,rdma_ucm,ib_uverbs,ib_cm
$ ./check srp/001
srp/001 (Create and remove LUNs) [failed]
runtime ... 3.675s
--- tests/srp/001.out 2021-10-13 01:18:50.846740093 -0400
+++ /root/blktests/results/nodev/srp/001.out.bad 2021-10-14 03:24:18.593852208 -0400
@@ -1,3 +1 @@
-Configured SRP target driver
-count_luns(): 3 <> 3
-Passed
+insmod: ERROR: could not insert module /lib/modules/5.15.0-rc5.fix+/kernel/drivers/infiniband/ulp/srpt/ib_srpt.ko: File exists
modprobe: FATAL: Module iscsi_target_mod is in use.
Reviewed-by: Bart Van Assche <[email protected]>
Signed-off-by: Yi Zhang <[email protected]>1 parent e786064 commit f51ee53
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
497 | | - | |
| 497 | + | |
| 498 | + | |
498 | 499 | | |
499 | 500 | | |
500 | 501 | | |
| |||
551 | 552 | | |
552 | 553 | | |
553 | 554 | | |
554 | | - | |
| 555 | + | |
555 | 556 | | |
556 | 557 | | |
557 | 558 | | |
| |||
0 commit comments