Commit Graph

412 Commits

Author SHA1 Message Date
Bart Van Assche
992ea282c8 ib_srpt: Process all I/O on thread context. Avoids that "HW pending for too long" messages are generated if writing takes long (merge r4219 from trunk).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4245 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-27 08:00:32 +00:00
Bart Van Assche
89a3e636c5 ib_srpt: Close active sessions when disabling a target (merge r4204 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4237 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-26 12:50:50 +00:00
Bart Van Assche
e5a1218aa0 ib_srpt: Process chained sg lists correctly (merge r4235 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4236 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-26 12:43:22 +00:00
Bart Van Assche
a44c64c221 nightly build: Add 3.3 support patches (merge r4167 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4229 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-25 09:21:26 +00:00
Bart Van Assche
d4b02d4a5f ib_srpt: Update an error message (merge r4222 from trunk).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4227 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-25 09:00:14 +00:00
Bart Van Assche
04959d6c91 ib_srpt: Make sure that srpt_cm_req_recv() returns a negative value if login is refused (merged r4221 from trunk).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4226 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-25 08:58:34 +00:00
Bart Van Assche
b3d8507430 ib_srpt: Workaround for an openSUSE 12.1 compiler bug (see also http://bugzilla.novell.com/show_bug.cgi?id=756235 - merged r4201 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4204 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-10 15:28:13 +00:00
Bart Van Assche
0735535126 ib_srpt: Make sure that pre-RTU requests are processed before post-RTU requests (merge trunk r4200).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4203 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-10 15:07:37 +00:00
Bart Van Assche
7caca49529 ib_srpt: Update ChangeLog (merged r4197 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4198 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-07 09:15:33 +00:00
Bart Van Assche
6734a08da5 ib_srpt: Disallow new logins during module removal (merged r4146 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4196 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-07 08:53:57 +00:00
Bart Van Assche
9869575cc2 ib_srpt: Unregister sessions properly / fix RTU race (merged r4192 and r4193
from trunk).


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4195 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-07 08:49:41 +00:00
Bart Van Assche
0d8b8df7e9 ib_srpt: Fix QP use-after-free triggered by SRP logout (merge r4139 from trunk).
Fixed this by destroying cm_id before QP instead of after. The following
messages were logged if the use-after-free occurred:

mlx4_core 0000:08:00.0: command 0x19 failed: fw status = 0x9
ib_srpt: ***ERROR***: srpt_init_ch_qp() failed (-9)
ib_srpt: ***ERROR***: rejected SRP_LOGIN_REQ because creating a new RDMA channel failed.
ib_srpt: Rejecting login with reason 0x10001


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4140 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-02-18 10:43:05 +00:00
Bart Van Assche
4e34d7a4f4 ib_srpt: Update version
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4098 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-25 21:02:44 +00:00
Bart Van Assche
e3f9a946b6 Make ib_srpt build again
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4097 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-25 20:50:59 +00:00
Bart Van Assche
3c7a7fc28d ib_srpt: Prepare 2.2.0 release
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4095 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-25 19:22:40 +00:00
Bart Van Assche
d8209bd0be ib_srpt: Update ChangeLog
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4085 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-21 17:56:48 +00:00
Bart Van Assche
3b2db8bb5a ib_srpt: Merge r4045:4083 from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4084 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-21 17:54:32 +00:00
Bart Van Assche
b2754da51f srpt: Update test procedure (merge r4045 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4046 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-01 19:28:18 +00:00
Bart Van Assche
dca262062d ib_srpt: Merge performance improvements and bug fixes from trunk (up to and including r4041).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4042 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-29 14:26:18 +00:00
Bart Van Assche
ecf118d344 ib_srpt: Make change log more detailed (merge r4018 from trunk).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.0.x@4019 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-20 15:37:54 +00:00
Bart Van Assche
b7fb0ab1c4 ib_srpt: Add 2.2.0 release notes (merge r4015 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.0.x@4016 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-19 19:40:31 +00:00
Bart Van Assche
43d9db9580 ib_srpt: Add support for debug2release etc (merge r3759 and r3760 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.0.x@4012 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-19 16:23:20 +00:00
Bart Van Assche
65ac764067 ib_srpt: Change __constant_cpu_... into cpu_... since the latter are also evaluated at compile time (merge r3803 from trunk).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.0.x@4004 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-19 15:14:12 +00:00
Bart Van Assche
bcf7cfa552 ib_srpt: Increase default value of srp_max_req_size from 2116 to 4148 bytes
(merge r3939 from trunk).


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.0.x@3994 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-15 10:49:12 +00:00
Bart Van Assche
bdbcebf0ec Only include <linux/version.h> if necessary (merge r3517 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.0.x@3992 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-15 10:39:40 +00:00
Bart Van Assche
4d470f0534 iscsi-scst/doc/iscsi-scst-howto.txt: Update because of the scstadmin changes (merge r3582 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.0.x@3985 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-15 10:02:31 +00:00
Bart Van Assche
926b0a6159 Add files necessary to run the regression tests against the 3.0 kernel (svn merge -c3783 https://scst.svn.sourceforge.net/svnroot/scst/trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3978 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-10 14:11:50 +00:00
Vladislav Bolkhovitin
dadceece11 Merged revisions 3929 via svnmerge from
https://vlnb@scst.svn.sourceforge.net/svnroot/scst/trunk

........
  r3929 | bvassche | 2011-11-17 04:24:12 -0500 (Thu, 17 Nov 2011) | 1 line
  
  regtests: Add files necessary for Linux kernel 3.1
........


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3972 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-10 04:24:21 +00:00
Bart Van Assche
e0c8c1b249 ib_srpt: Remove an unused struct member (merged r3903 from trunk).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3913 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-06 10:46:57 +00:00
Bart Van Assche
65c0b7ea2e ib_srpt: Avoid delay when unloading during I/O (merged r3899 and r3900 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3912 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-06 10:45:25 +00:00
Bart Van Assche
fe6c9a0a32 ib_srpt: Make srpt_alloc_ioctx_ring() return NULL instead of a dangling
pointer if allocation fails. Reported by Dan Carpenter
<dan.carpenter@oracle.com> on the linux-rdma@vger.kernel.org mailing list.

(Merged r3907 from the trunk.)


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3908 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-04 18:38:01 +00:00
Bart Van Assche
f407c425c0 Reran performance measurements
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3893 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-08 11:17:37 +00:00
Bart Van Assche
0ddfd33bda ib_srpt: Avoid that the cleanup code invoked after rejecting a new initiator connection triggers a race condition (Merge r3877 from trunk).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3881 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-27 18:29:20 +00:00
Bart Van Assche
c014e007b6 ib_srpt: Remove a superfluous __srpt_close_ch() call (Merged r3872 from trunk).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3880 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-27 16:57:38 +00:00
Bart Van Assche
15f48dd4ef ib_srpt: Follow-up for r3873 (for modes thread == 0 or thread == 2 only)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3874 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-19 18:31:51 +00:00
Bart Van Assche
d8c5e561a8 ib_srpt: Reenable session unregistration if thread != 1
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3873 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-18 13:03:01 +00:00
Bart Van Assche
3bc77c2236 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.

(Merged r3869 and r3870 from the trunk.)


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3871 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-18 11:57:46 +00:00
Bart Van Assche
9993f198ae ib_srpt: Reduce Last WQE wait time (merge r3866 and 3867 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3868 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-18 08:18:53 +00:00
Bart Van Assche
2a4e7122e3 ib_srpt: Eliminate a variable that became superfluous due to previous merges
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3865 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-18 06:48:57 +00:00
Bart Van Assche
344a72508a ib_srpt: Only invoke wake_up_process() in threaded mode
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3864 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-18 06:47:40 +00:00
Bart Van Assche
2dc3be5a42 Merge trunk r3632 properly
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3861 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-17 16:20:48 +00:00
Bart Van Assche
c57dc1b9f0 ib_srpt: Merge r3854..3859 from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3860 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-17 16:00:12 +00:00
Bart Van Assche
89eb6b5eb6 ib_srpt: Builds again on 32-bit systems (backported r3815 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3852 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-13 18:45:13 +00:00
Bart Van Assche
5acb28a66b ib_srpt: switch to 2.1.1-pre
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3851 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-13 18:41:25 +00:00
Bart Van Assche
2fd10bc541 Remove outdated srpt to-do list (merge r3847 from the trunk).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3848 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-07 19:04:34 +00:00
Bart Van Assche
23e1a4a9a9 ib_srpt: Prepare 2.1.0 release
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3846 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-07 18:56:47 +00:00
Bart Van Assche
1313e29194 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/branches/2.1.0.x@3795 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-03 12:15:19 +00:00
Bart Van Assche
73f96c98af ib_srpt: Remove trailing whitespace
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3792 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-03 08:21:56 +00:00
Bart Van Assche
8208430a15 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)
(Merged r3649 from the trunk)


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3791 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-03 08:11:24 +00:00
Bart Van Assche
333ea96fb4 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.

(Merged r3632 from the trunk)


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3790 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-03 08:02:17 +00:00