Commit Graph

451 Commits

Author SHA1 Message Date
Bart Van Assche
75fa117690 ib_srpt: Reduce number of kmalloc() calls per I/O
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3904 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-30 12:33:42 +00:00
Bart Van Assche
4847e48523 ib_srpt: Remove an unused struct member
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3903 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-30 12:29:45 +00:00
Bart Van Assche
05caa249b5 ib_srpt: Avoid a sporadic 160s delay when a session is unregistered or when removing the ib_srpt kernel module during I/O
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3900 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-26 17:42:37 +00:00
Bart Van Assche
9ea2e26aaa ib_srpt: Avoid stopping polling too early for IB completions.
This resulted in unnecessary complaints about IB completions not being
received in time when removing the ib_srpt kernel module during I/O. Note:
it is still possible that such complaints occur, but much less frequent.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3899 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-25 18:05:57 +00:00
Bart Van Assche
aa12492349 ib_srpt: Make the error message about rejected login more clear
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3897 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-20 16:59:15 +00:00
Bart Van Assche
d9658fcda4 Reran performance measurements
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3892 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-08 11:08:55 +00:00
Bart Van Assche
29530f6bf5 srpt/README: Add note about DEVICE.threads_num
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3889 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-05 16:34:09 +00:00
Bart Van Assche
24a453bc16 ib_srpt: Avoid that the cleanup code invoked after rejecting a new initiator connection triggers a race condition
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3877 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-22 17:51:19 +00:00
Bart Van Assche
f3425ccf02 ib_srpt: Remove an outdated comment
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3876 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-22 17:49:45 +00:00
Bart Van Assche
80a0c069de ib_srpt: Clean up two PRINT_ERROR() statements
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3875 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-22 17:49:04 +00:00
Bart Van Assche
ce85be1595 ib_srpt: Remove a superfluous __srpt_close_ch() call
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3872 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-18 12:23:13 +00:00
Bart Van Assche
1c358f4222 ib_srpt: Fix "rejected SRP_LOGIN_REQ because creating a new RDMA channel failed"
Fix two race conditions that could trigger this failure:
- Completion thread not woken up after channel state change.
- Reception of Last WQE event before the channel queue pair was reset.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3870 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-18 11:15:17 +00:00
Bart Van Assche
afe7e9c6ec ib_srpt: Show the state name in debug messages
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3869 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-18 11:04:10 +00:00
Bart Van Assche
407f5b0c64 Follow-up for r3866
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3867 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-18 08:01:29 +00:00
Bart Van Assche
8afd4e9d4e ib_srpt: Reduce the Last WQE wait time
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3866 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-18 07:38:37 +00:00
Bart Van Assche
aa7647b0bb Fix a typo introduced in r3858
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3859 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-17 15:38:09 +00:00
Bart Van Assche
191f40304d ib_srpt: Make sure that rmmod finishes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3858 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-17 15:24:37 +00:00
Bart Van Assche
ff60ad9a52 ib_srpt: Don't wait forever for the Last WQE event
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3857 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-17 15:23:36 +00:00
Bart Van Assche
c3c23dcb7e ib_srpt: Make srpt_release_sdev() logging more informative
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3856 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-17 15:22:13 +00:00
Bart Van Assche
97547c2f1d ib_srpt: Relax a WARN_ON() statement such that it doesn't fire needlessly
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3855 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-17 15:21:07 +00:00
Bart Van Assche
5f0326aa3d ib_srpt: Mask off AGN_MASK bits before invoking ib_cm_listen()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3854 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-17 15:19:45 +00:00
Bart Van Assche
40c8c3ae0a ib_srpt: Make error reporting more detailed
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3853 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-17 15:17:41 +00:00
Bart Van Assche
5a4ee2342b ib_srpt: Remove to-do list because outdated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3847 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-07 19:03:06 +00:00
Bart Van Assche
c9bd29a8b9 ib_srpt: Clean up tracing statements
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3821 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-18 09:08:22 +00:00
Bart Van Assche
832968b65e ib_srpt: Builds again on 32-bit systems
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3815 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-17 08:21:08 +00:00
Bart Van Assche
50c2ef2e01 srpt/Makefile: Use $(MAKE) instead of make when recursing. See also http://www.gnu.org/s/hello/manual/make/MAKE-Variable.html for more information about why this is important.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3814 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-17 07:51:08 +00:00
Bart Van Assche
0e26a6c7a5 ib_srpt: Change __constant_cpu_... into cpu_... since the latter are also evaluated at compile time
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3803 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-14 08:48:42 +00:00
Bart Van Assche
47170d1578 ib_srpt: Function tracing output format fix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3798 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-03 12:46:13 +00:00
Bart Van Assche
15d2609293 ib_srpt: Avoid that removing ib_srpt while I/O is ongoing sometimes triggers a hang
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3796 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-03 12:34:31 +00:00
Bart Van Assche
dbc55781d7 Add remaining Linux kernel 3.0 patches and port nightly build scripts to 3.0 too.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3783 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-27 14:05:47 +00:00
Bart Van Assche
7999ac6f53 srpt: Make build mode switches silent
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3760 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-26 09:27:48 +00:00
Bart Van Assche
84f56dfa67 srpt: Change default build mode from release to debug. Add support for "make 2debug" / "make 2release" / "make 2perf".
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3759 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-26 09:26:17 +00:00
Bart Van Assche
0e3325b705 ib_srpt: Fix an RHEL-specific compiler warning.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3750 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-24 10:56:57 +00:00
Bart Van Assche
40d862c972 ib_srpt: Update author information
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3719 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-22 11:50:11 +00:00
Bart Van Assche
6a353597eb ib_srpt: Remove a trailing tab
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3650 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-02 11:54:14 +00:00
Bart Van Assche
42c151b01c ib_srpt: Increase RDMA completion time from 60s to 80s such that it is above the maximum time it can take for the HCA to deliver a completion (which is 60.129s with local ack timeout = 18 and retry_cnt = 7)
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3649 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-02 11:36:44 +00:00
Bart Van Assche
fa232d0c22 ib_srpt: Log QP timeout if debugging is enabled
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3648 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-01 19:26:11 +00:00
Bart Van Assche
32f5924e18 ib_srpt: Zero-initialize QP attributes before invoking ib_modify_qp()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3647 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-01 19:19:20 +00:00
Bart Van Assche
50dfafb30a ib_srpt: Update test documentation
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3633 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-26 14:57:11 +00:00
Bart Van Assche
8681a0124a ib_srpt: Avoid that failed multipart RDMA transfers cause havoc.
Multipart RDMA transfers can fail after one or more but not all RDMA transfers
have been initiated because either an IB cable has been pulled or the ib_srpt
kernel module has been unloaded while an RDMA transfer is being set up.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3632 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-26 14:46:23 +00:00
Bart Van Assche
97ee608748 ib_srpt: Embed HCA name in srpt thread name
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3631 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-26 14:32:00 +00:00
Bart Van Assche
eff4f33b70 ib_srpt: Relax a BUG_ON() statement into WARN_ON()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3630 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-26 14:30:38 +00:00
Bart Van Assche
d08012d8cd ib_srpt: Inline srpt_release_channel()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3629 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-26 13:33:09 +00:00
Bart Van Assche
3e6f7ba432 ib_srpt: Document known max_sge limitations
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3628 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-26 07:20:49 +00:00
Bart Van Assche
85ac2c728b ib_srpt: Works again on mthca (not tested yet). A quote from the OFED 1.2.5
release notes (docs/mthca_release_notes.txt), section "3. Known Issues":

3. In mem-free devices, RC QPs can be created with a maximum of (max_sge - 3)
   entries only.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3627 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-25 19:32:32 +00:00
Bart Van Assche
5484d6dfc4 ib_srpt: Eliminate the magic constant SRPT_DEF_SG_PER_WQE
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3626 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-25 19:13:50 +00:00
Bart Van Assche
fd5df29c9c ib_srpt: Remove two superfluous blank lines
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3607 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-22 19:28:15 +00:00
Bart Van Assche
6020683851 ib_srpt: Update dynamic LUN documentation
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3589 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-18 11:40:06 +00:00
Bart Van Assche
feab0a9fe9 ib_srpt README: Add a paragraph about adding and removing LUNs dynamically
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3585 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-17 17:53:06 +00:00
Bart Van Assche
00efb5c667 ib_srpt: Internal change to the credit algorithm. No externally observable behavior is changed.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3575 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-13 12:38:18 +00:00