Re: [PATCH blktests] tests/srp: fix module loading issue during srp tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/14/21 02:04, Yi Zhang wrote:
diff --git a/tests/srp/rc b/tests/srp/rc
index 586f007..f89948b 100755
--- a/tests/srp/rc
+++ b/tests/srp/rc
@@ -494,6 +494,7 @@ start_lio_srpt() {
  	if modinfo ib_srpt | grep -q '^parm:[[:blank:]]*rdma_cm_port:'; then
  		opts+=("rdma_cm_port=${srp_rdma_cm_port}")
  	fi
+	unload_module ib_srpt && \
  	insmod "/lib/modules/$(uname -r)/kernel/drivers/infiniband/ulp/srpt/ib_srpt."* "${opts[@]}" || return $?

A nit: the backslash after && can be removed.

Otherwise this patch looks fine to me.

Thanks,

Bart.



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux