Bart Van Assche
1395c41108
ib_srpt: Builds again on RHEL 5.x
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3518 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-02 16:04:13 +00:00
Bart Van Assche
864b679c38
Only #include <linux/version.h> if necessary.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3517 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-02 14:55:54 +00:00
Bart Van Assche
b88aee7393
ib_srpt: follow-up for r3515.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3516 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-02 14:54:51 +00:00
Bart Van Assche
177a6c915e
ib_srpt: Eliminate srpt_rdma_ch.processing_compl.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3515 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-02 14:35:14 +00:00
Bart Van Assche
1bbda55d42
ib_srpt: Eliminate srpt_rdma_ch.wait_queue
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3514 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-02 14:27:17 +00:00
Bart Van Assche
d3de2b58ae
ib_srpt: Fixed srp_max_rsp_size kernel module parameter description.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3512 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-02 10:04:22 +00:00
Bart Van Assche
37228bf6d1
ib_srpt: removed thread start/stop messages.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3506 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-01 17:26:09 +00:00
Bart Van Assche
dc65372a4d
ib_srpt: Coding style fixes
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3492 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-01 06:32:47 +00:00
Vladislav Bolkhovitin
802838d27b
HCAs GUIDs should be used as target names
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3397 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-20 22:51:51 +00:00
Bart Van Assche
07dffb9e8f
Reverted because untested.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3393 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-16 17:54:54 +00:00
Vladislav Bolkhovitin
caffffcf0c
HCAs GUIDs should be used as target names
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3388 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-16 15:36:32 +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
Bart Van Assche
92b70d4f83
ib_srpt: Report firmware bugs instead of silently ignoring these.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2346 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-04 16:57:03 +00:00
Bart Van Assche
c42c4159ed
Fixed a checkpatch complaint.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2343 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-03 07:26:03 +00:00
Bart Van Assche
c130e11f44
ib_srpt: race-at-session-unregistration-fix (partially reverted r2339).
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2342 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-02 17:45:57 +00:00
Bart Van Assche
c935c8e28d
ib_srpt: Increased ib_wc array size back from 4 to 16.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2341 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-02 16:05:54 +00:00
Bart Van Assche
d45f587bdc
Fixed a race between session unregistration and queueing new commands.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2339 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-02 15:54:39 +00:00
Bart Van Assche
1df8d51091
Source code comment update.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2337 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-02 15:09:12 +00:00
Bart Van Assche
cc48d8ac94
Reduced stack usage of srpt_process_completion.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2336 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-02 15:08:45 +00:00
Bart Van Assche
5c955fad01
Changes:
...
- Removed a superfluous state transition in srpt_abort_scst_cmd() and
cleaned up the source code of this function a bit.
- Implemented a workaround for the InfiniBand kernel stack bug that could
result in IB_WC_RECV error completions to be delivered with an incorrect
wr_id.
- RDMA read error completions and SRP_CRED_REQ send error completions are now
processed correctly.
- If posting an SRP_RSP fails, don't set the delivery status because sending
the response will be retried anyway.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2335 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-02 15:08:18 +00:00
Bart Van Assche
91f966ec33
Minor source code comment edit.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2332 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-02 12:52:57 +00:00
Bart Van Assche
ba111e1804
Converted the two remaining scst_cmd_get_resp_data_len() calls.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2310 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-29 19:04:31 +00:00
Bart Van Assche
6213d95400
ib_srpt: fix SCSI residual handling.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2306 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-29 17:47:14 +00:00
Bart Van Assche
986844622a
Fixed a performance regression caused by r2109.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2248 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-24 19:07:17 +00:00