Commit Graph

349 Commits

Author SHA1 Message Date
Bart Van Assche
548f229efb ib_srpt: Build fix for kernel version 3.13 and later
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@5553 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-05-24 07:03:12 +00:00
Bart Van Assche
05c7cde274 ib_srpt: Clean up more tracing statements
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@5159 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-18 14:01:47 +00:00
Bart Van Assche
85b9522138 ib_srpt: Clean up tracing statements (merge r3821 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@5158 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-18 13:56:59 +00:00
Bart Van Assche
d8b2d39062 ib_srpt: Convert a few more sizeof e expressions into sizeof(e)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@5156 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-18 13:42:24 +00:00
Bart Van Assche
437dc470ea ib_srpt: Convert sizeof e into sizeof(e) (merge r4540 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@5154 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-12-18 13:39:32 +00:00
Bart Van Assche
4056201516 Copyright updates (merge r4767 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@5029 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-10-05 16:45:58 +00:00
Bart Van Assche
619754fadb ib_srpt: Always set RSPVALID flag in task management replies (merge r5002 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@5009 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-09-28 16:09:28 +00:00
Bart Van Assche
41a0149495 Change version number from 2.2.1 into 2.2.2-pre
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4751 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-02-01 13:57:04 +00:00
Bart Van Assche
f5706d0902 Multiple makefiles: autodetect SCST include directory
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4737 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-01-13 19:42:04 +00:00
Bart Van Assche
c16b9c2b3d Change version 2.2.1-pre into 2.2.1
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4731 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-01-12 15:31:48 +00:00
Bart Van Assche
c4cedb589d ib_srpt: Remove an unused variable (merge r4554 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4712 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-01-06 14:39:11 +00:00
Bart Van Assche
68edb1a296 Copyright updates + iscsi-scst bug fix (merge r4216 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4704 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-01-06 14:03:57 +00:00
Bart Van Assche
1052aa7bce ib_srpt: Bump version
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4664 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-12-21 12:09:36 +00:00
Bart Van Assche
88a37b7a25 ib_srpt: Avoid that max_compl_time_ms is zero due to an integer overflow (merge r4662 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4663 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-12-21 12:05:36 +00:00
Bart Van Assche
7ba44bbc51 ib_srpt: Avoid that module unloading races with closing sessions (merge r4446 from trunk)
Fixed issue:
    
BUG: unable to handle kernel paging request at ffffffffa04dc479
IP: [<ffffffffa04dc479>] 0xffffffffa04dc478
Oops: 0010 [#1] SMP
Pid: 29313, comm: srpt_mlx4_0-2 Tainted: G           O 3.6.0-rc1-debug+ #1
Process srpt_mlx4_0-2
Call Trace:
 [<ffffffff8106254e>] ? kthread+0xae/0xc0
 [<ffffffff81418464>] ? kernel_thread_helper+0x4/0x10
 [<ffffffff8140f080>] ? _raw_spin_unlock_irq+0x30/0x50
 [<ffffffff810983ad>] ? trace_hardirqs_on+0xd/0x10
 [<ffffffff8140f359>] ? retint_restore_args+0xe/0xe
 [<ffffffff810624a0>] ? __init_kthread_worker+0x70/0x70
 [<ffffffff81418460>] ? gs_change+0xb/0xb
Code:  Bad RIP value.



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4625 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-23 13:44:26 +00:00
Bart Van Assche
dc250d6191 ib_srpt, procfs: Fix a compiler warning introduced in trunk r4260 (merge r4310 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4360 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-06-18 16:50:15 +00:00
Bart Van Assche
e30d0cbe0c ib_srpt: Make sure that a DREP is sent to the initiator if a DREQ is received while a session is being closed
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4314 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-23 07:43:37 +00:00
Bart Van Assche
550d50a7a1 ib_srpt: Adjust source code indentation (this is a whitespace-only change)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4288 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-07 14:58:32 +00:00
Bart Van Assche
d7922d5fb3 ib_srpt: Update copyright statement
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4287 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-07 14:56:03 +00:00
Bart Van Assche
03223edf88 ib_srpt: Move the target port enabled check back (merge r4284 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4285 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-04 17:25:14 +00:00
Bart Van Assche
8e8018571f ib_srpt: Test earlier during login whether a port has been disabled (merge r4282 from trunk).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4283 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-04 16:06:08 +00:00
Bart Van Assche
4f794143fb ib_srpt: Fix a few (theoretical ?) race conditions (merge r4278 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4280 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-03 14:22:41 +00:00
Bart Van Assche
21c4f975c8 ib_srpt: Remove a superfluous test (merge r4212 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4279 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-03 14:06:17 +00:00
Bart Van Assche
be0b4d640c ib_srpt: Handle thread creation failure properly (merge r4262:4270 from trunk).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4271 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-02 15:32:26 +00:00
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
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
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
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
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
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
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
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