From 5496aa9c2d60a78ad14b3f9ee3eebbe3687d7592 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 3 May 2012 09:03:09 +0000 Subject: [PATCH] ib_srpt, Testing.txt: Add a test git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4276 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/Testing.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/srpt/Testing.txt b/srpt/Testing.txt index 1d430c104..0e82d8fe8 100644 --- a/srpt/Testing.txt +++ b/srpt/Testing.txt @@ -142,3 +142,17 @@ Index: srpt/src/ib_srpt.c - On the target, unload and reload the ib_srpt kernel module. - Verify that no kernel crash occurs on the target. - Repeat the above a few times. + +* Test whether the code for rejecting a login after the completion thread has + been created works fine. Do that as follows: + - Insert "ret = -ENOMEM;" after the srpt_ch_qp_rtr() call. + - Rebuild, reinstall and restart SCST and ib_srpt on a system running a + debug kernel. + - Log in a few times from another system. + - Verify on the initiator system that each login attempt results in + "write error: Connection reset by peer". + - Verify on the target that no error messages have been logged in the kernel + log, that no completion threads remain (output of "ps aux | grep srpt" must + not list any kernel threads) and that no sessions remain + (output of "ls /sys/kernel/scst_tgt/targets/ib_srpt/*/sessions" must be + empty) and that the amount of free memory remains the same.