From 2df95bda264c5499665f0ee729afaa0a61309e41 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 5 Aug 2012 09:26:24 +0000 Subject: [PATCH] ib_srpt: Document an additional test git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4448 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/Testing.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/srpt/Testing.txt b/srpt/Testing.txt index 2f8374e38..cff820020 100644 --- a/srpt/Testing.txt +++ b/srpt/Testing.txt @@ -169,3 +169,25 @@ Index: srpt/src/ib_srpt.c sleep 10 done While this script is running, repeatedly try to log in from another system. + +* Test as follows that module removal with active sessions works fine (this + test uses the loopback capability of an IB HCA): + + for ((i=0;i<1;i++)); do + /etc/init.d/scst restart + while [ -e /sys/module/ib_srp ]; do + rmmod ib_srp >/dev/null 2>&1 || sleep 1 + done + modprobe ib_srp + cat /sys/kernel/scst_tgt/targets/ib_srpt/*/login_info | + sed 's/^t//' | + while read target_info; do + echo "${target_info}" + for dev in /sys/class/infiniband_srp/srp-*; do + echo -n "${target_info}" > $dev/add_target & + done + wait + done + (cd /sys/class/srp_host && ls) + sleep 1 + done