Commit Graph

305 Commits

Author SHA1 Message Date
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
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
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
Vladislav Bolkhovitin
6084197aa1 Merge of the trunk's r3397:
HCAs GUIDs should be used as target names



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3398 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-20 22:53:30 +00:00
Bart Van Assche
8072c7b835 svn merge -c3393 https://scst.svn.sourceforge.net/svnroot/scst/trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3394 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-17 18:18:07 +00:00
Vladislav Bolkhovitin
5688fa63f6 Stable 2.1 branch added
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3390 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-16 16:06:17 +00:00
Bart Van Assche
0921e9c1da Avoid that the compiler complains about unused variables.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3342 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-02 17:49:41 +00:00
Bart Van Assche
e45cda7c66 Reverted r3330 because it was committed before having been discussed.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3332 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-02 06:48:53 +00:00
Vladislav Bolkhovitin
13b8766a6a Experimental patch to allow HCAs GUIDs be used as target names
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3331 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-01 19:50:12 +00:00
Vladislav Bolkhovitin
4539005d7c Patch from Alexey Obitotskiy <alexeyo1@open-e.com> making get_initiator_port_transport_id() more flexible
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3322 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-03-29 14:30:01 +00:00
Bart Van Assche
074479ba16 ib_srpt: Fix potential out-of-bounds array access
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3262 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-02-26 09:48:58 +00:00
Bart Van Assche
d00aaf6732 ib_srpt: Handle fatal errors properly in srpt_xmit_response()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3257 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-02-24 17:45:22 +00:00
Bart Van Assche
8d0406a0cb ib_srpt: Reformatted one statement to keep checkpatch happy.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3192 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-05 13:15:01 +00:00
Bart Van Assche
5fe037e5b9 Updated my e-mail address in copyright statements and README files.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3175 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-21 18:48:14 +00:00
Bart Van Assche
36d3ac3059 ib_srpt: Fixed a bug in the RDMA channel disconnection processing code.
(Merged r3142 from the sysfs-tree-changes branch.)


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3143 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-19 13:29:08 +00:00
Bart Van Assche
cd984c6f82 ib_srpt: Fix a procfs-only compiler warning.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3017 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-11 09:58:37 +00:00
Bart Van Assche
8e0e19c9de ib_srpt (sysfs): Converted login_info from a device attribute into a tgt attribute.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3003 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-10 09:47:29 +00:00
Bart Van Assche
17cb105213 Made sure that srpt_release() doesn't oops if srpt_add_one() fails after
having registered the target and before the srpt_post_recv() loop started.

Reported-by: Frank Zago <fzago@systemfabricworks.com>.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2963 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-07 16:59:19 +00:00
Bart Van Assche
1fe5da1dea ib_srpt: Source code formatting cleanup.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2951 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-07 09:25:23 +00:00
Bart Van Assche
7e158b0c68 Handle iWARP devices graciously - ib_srpt does not work with at least Intel
iWARP devices.

Reported-by: Frank Zago <fzago@systemfabricworks.com>.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2950 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-07 09:21:16 +00:00
Bart Van Assche
1d520654cb ib_srpt: Pass correct atomic context information to scst_rx_cmd().
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2912 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-03 11:29:47 +00:00
Bart Van Assche
83a967d3a3 ib_srpt: Made sure that accessing sysfs entries during target creation is harmless.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2703 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-14 09:32:03 +00:00
Bart Van Assche
6297569bce ib_srpt: Builds again on RHEL 5 (enable_proc).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2696 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-13 22:29:12 +00:00
Bart Van Assche
f14f14a31e ib_srpt: Converted req_lim and req_lim_delta from device-specific attributes into session-specific attributes, which makes a lot more sense.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2692 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-13 17:28:18 +00:00
Bart Van Assche
7025e1a732 Should have been included in r2686.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2688 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-13 14:58:11 +00:00
Bart Van Assche
79a4dcc4e5 ib_srpt: Made sure that no credits are lost because of SCSI task abortion.
ib_srpt: Exported req_lim and req_lim_delta values via sysfs because this is convenient for debugging purposes.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2686 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-13 14:38:44 +00:00
Bart Van Assche
8b248b67c1 ib_srpt: Added a comment.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2459 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-24 18:32:14 +00:00
Bart Van Assche
d07bd65ba1 ib_srpt: Moved a source code comment.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2458 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-24 11:58:34 +00:00
Bart Van Assche
b9c17588fa ib_srpt: Changed queue full message severity level from ERROR to WARNING since this condition is not fatal.
ib_srpt: Micro-optimization: pass the number of bytes that will be sent to ib_dma_sync_single_for_device() instead of the size of the entire DMA buffer.
ib_srpt: Fixed two bugs in the code for tracking the number of elements available in the IB send queue and that could be triggered by a send queue overflow.

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2456 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-24 09:30:40 +00:00
Bart Van Assche
172c211176 ib_srpt: Fixed bug in IB send queue overflow handling.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2455 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-23 14:32:15 +00:00
Bart Van Assche
8be8b4e66d svn merge -r2380:2441 https://scst.svn.sourceforge.net/svnroot/scst/branches/srpt-separate-rx-tx-buffers .
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2442 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-21 19:21:10 +00:00
Bart Van Assche
bb540fa9f8 ib_srpt: Removed an unused variable.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2379 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-09 07:25:55 +00:00
Bart Van Assche
ac5a366941 ib_srpt: Further improved robustness against HCA firmware bugs.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2375 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-08 19:02:35 +00:00