Vladislav Bolkhovitin
f518cd150c
Let's remove *.orig and *.rej files on extraclean
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3277 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-03-10 20:07:23 +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
900a70d873
ib_srpt: Made instructions in the documentation independent of the scstadmin version.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2717 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-16 19:16:48 +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
fa49407967
ib_srpt: Test procedure update.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2457 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-24 09:31:03 +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
6786d02fa6
ib_srpt: Documentation update.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2443 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-21 19:34:44 +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
a75d3cc2c3
ib_srpt: Documentation update.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2391 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-10 11:33:29 +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
5606dcc10e
Updated test procedure.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2376 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-08 19:21:00 +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
6f6b0a4acd
ib_srpt: Updated test instructions.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2348 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-05 16:55:32 +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
e3fcb70f50
ib_srpt documentation: Shortened a note.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2340 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-02 15:56:46 +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
dee70735c5
ib_srpt: Added a note about unloading while I/O is ongoing.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2338 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-02 15:28:33 +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
Bart Van Assche
4a9ed0a7e1
Replaced cpu_to_be...() by __constant_cpu_to_be...() where appropriate.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2230 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-24 07:10:42 +00:00
Bart Van Assche
9f20d45776
Version number update.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2140 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-17 06:02:51 +00:00
Bart Van Assche
f5736f2b6a
ib_srpt performance optimization.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2109 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-12 18:57:04 +00:00
Bart Van Assche
72fb7b3644
Shortened a kernel module parameter description.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2106 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-12 10:03:06 +00:00
Bart Van Assche
9878d2533f
Reverted r2099.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2102 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-12 07:31:33 +00:00
Bart Van Assche
1c90d919d5
Removed unused code.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2099 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-11 18:20:59 +00:00