Bart Van Assche
4f445f4c33
Merge branch 'svn-trunk' r6192
...
Conflicts:
scst/include/scst.h
scst/src/dev_handlers/scst_vdisk.c
2015-05-01 08:15:50 +02:00
Vladislav Bolkhovitin
906f4dfefb
Merge t10-pi branch back
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6192 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-05-01 04:21:56 +00:00
Bart Van Assche
5b57a0bcea
ib_srpt: RHEL 5 build fix
...
Make the ib_srpt driver build again on RHEL 5 systems. See also
r6138 / commit ID 940faa9ad4 .
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com >
2015-04-15 17:54:56 +02:00
Bart Van Assche
a613f706c3
ib_srpt: RHEL 7.1 build fix
...
With the RHEL 7.0 kernel ib_register_mad_agent() takes eight
arguments. With the RHEL 7.1 kernel the same function takes nine
arguments. Detect at build time how many arguments this function
takes.
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com >
2015-04-15 14:30:34 +02:00
Bart Van Assche
33a4bccc38
ib_srpt: Avoid that aborting a command triggers a race condition
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6181 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-04-10 05:39:44 +00:00
Bart Van Assche
98fb52432c
ib_srpt: Specify a valid completion vector during completion queue creation
...
Avoid that SRP login can fail as follows:
kernel: ib_srpt: failed to create CQ: cqe 320; c.v. 17; ret -22
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6179 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-04-09 15:06:36 +00:00
Bart Van Assche
c32f79f6c1
Revert T10-PI support
...
The T10-PI patch (r6162) increases the time needed to run mkfs.ext4
over iSCSI from less than a second to several minutes. This is a
regression so revert the T10-PI patch until there is sufficient time
to find the root cause of this regression and to fix this regression.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6171 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-03-31 09:51:24 +00:00
Bart Van Assche
a3f4f28711
Build fixes - follow-up for r6162
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6164 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-03-29 17:32:59 +00:00
Vladislav Bolkhovitin
fe38e4acb2
Copyrights updated
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6146 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-03-19 00:01:03 +00:00
Bart Van Assche
940faa9ad4
ib_srpt: Enable building against OFED headers without patching the build system
...
Additionally, include the OFED flavor name in the ib_srpt version number.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6138 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-03-02 14:28:25 +00:00
Bart Van Assche
ef48d260d2
ib_srpt: Suppress a compiler warning when building against Mellanox OFED
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6137 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-03-02 14:24:33 +00:00
Vladislav Bolkhovitin
4ac6d7a26d
[PATCH] scst: Drop detect() method
...
There is no need for a detect() method - code that is present in such
a method can be moved to module_init(). Hence declare this method
obsolete. Leave the detect pointer member in the target template for
now for out-of-tree SCST drivers.
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com >
with some improvements
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6113 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-21 04:32:36 +00:00
Bart Van Assche
35db9c65f3
ib_srpt: Suppress three more checkpatch warnings
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6107 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-17 07:21:01 +00:00
Bart Van Assche
f974dee9b0
ib_srpt: Suppress a checkpath complaint
...
Avoid that checkpatch reports the following:
WARNING: Possible unnecessary 'out of memory' message
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6106 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-17 07:08:49 +00:00
Bart Van Assche
68a9178e4a
ib_srpt: Remove redundant forward declarations
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6105 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 15:47:46 +00:00
Bart Van Assche
56d3217eb0
ib_srpt: Update a source code comment
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6104 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 15:43:44 +00:00
Bart Van Assche
d46a3e8bab
ib_srpt: Convert srpt_xfer_data() return value
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6103 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 14:49:45 +00:00
Bart Van Assche
59f25b783e
ib_srpt: Eliminate an argument from srpt_xfer_data()
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6102 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 14:34:00 +00:00
Bart Van Assche
5b5d944140
ib_srpt: Rename more variables
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6101 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 13:41:31 +00:00
Bart Van Assche
aa52348481
ib_srpt: Fix a checkpatch complaint
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6100 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 13:21:34 +00:00
Bart Van Assche
4ddf8b19ec
ib_srpt: Clean up an error message
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6099 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 13:18:18 +00:00
Bart Van Assche
585df7c5f6
ib_srpt: Rename a few variables
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6098 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 13:16:52 +00:00
Bart Van Assche
edb4d579fb
ib_srpt: Shorten a source code comment
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6097 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 12:53:12 +00:00
Bart Van Assche
c2b09b243c
ib_srpt: Change type of the first argument of srpt_get_ioc()
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6096 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 12:48:36 +00:00
Bart Van Assche
460c0bdada
ib_srpt: Swap the order of two declarations
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6095 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 10:56:26 +00:00
Bart Van Assche
c8e0a2c711
ib_srpt: Reorder structure members
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6094 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 10:40:05 +00:00
Bart Van Assche
b0ed8ed58c
ib_srpt: Convert print and trace statements
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6093 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 10:26:21 +00:00
Bart Van Assche
b686ed343d
ib_srpt: Remove TRACE_ENTRY()/TRACE_EXIT() macro invocations
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6092 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 09:46:40 +00:00
Bart Van Assche
42bc56a0a2
ib_srpt: Add missing kernel-doc comments
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6091 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 09:44:25 +00:00
Bart Van Assche
f9815c620d
ib_srpt: Eliminate struct srpt_tgt
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6090 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 09:41:25 +00:00
Bart Van Assche
f2796fa60b
ib_srpt: Remove a structure member that became superfluous due to the previous commit
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6086 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-13 13:12:06 +00:00
Bart Van Assche
0d452d4712
ib_srpt: Drop support for one_target_per_port=false
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6085 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-13 12:59:18 +00:00
Bart Van Assche
f4217a8b48
ib_srpt: Clarify a log message
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6026 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-08 12:53:02 +00:00
Bart Van Assche
2de7915259
ib_srpt: Remove an obsolete comment
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6022 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-06 15:11:33 +00:00
Bart Van Assche
078b9d3bbe
ib_srpt: Clean up header file ib_srpt.h
...
This patch does not change any functionality.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6021 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-06 14:39:55 +00:00
Bart Van Assche
070986a738
ib_srpt: Document #endif CONFIG_SCST_PROC statements
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6020 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-06 13:55:51 +00:00
Bart Van Assche
8446ccd282
ib_srpt: Remove emacs local variables
...
This patch does not change any functionality.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6019 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-05 16:23:25 +00:00
Bart Van Assche
d6dbe1a0b0
Source code spelling fix: addres -> address
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5945 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-12-22 12:29:51 +00:00
Bart Van Assche
edcde67ddd
ib_srpt: Log P_Key during login
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5935 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-12-11 12:37:02 +00:00
Bart Van Assche
7507b77063
ib_srpt: Rework the max_sge computation changes from r5795
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5894 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-27 15:29:29 +00:00
Bart Van Assche
efa1a763a6
ib_srpt: Log reject reason
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5893 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-27 15:24:17 +00:00
Bart Van Assche
d51ecb0e2a
ib_srpt: Add support for immediate data
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5892 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-27 15:19:21 +00:00
Bart Van Assche
b37c988337
ib_srpt: Make the send queue full messages more informational
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5887 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-26 14:39:51 +00:00
Bart Van Assche
4e645536a2
ib_srpt: Add support for HCA's that do not support SRQ
...
Based on a patch provided by Parav Pandit <Parav.Pandit@Emulex.Com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5881 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-24 17:59:14 +00:00
Bart Van Assche
f4f568f884
ib_srpt: Add max_sge_delta kernel module parameter
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5795 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-10 12:18:09 +00:00
Bart Van Assche
6e311fea7f
ib_srpt: Bump driver version from 3.0.0-pre to 3.1.0-pre
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5769 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-04 12:56:48 +00:00
Bart Van Assche
7061a6ee8d
ib_srpt: Make the completion vector configurable
...
Allow a set of completion vectors to be associated with each InfiniBand
HCA port and allocate the completion vector for each session in a
round-robin fashion from the per-port set. This helps to spread the
InfiniBand interrupt workload over multiple CPU's, at least if different
InfiniBand MSI-X vectors are associated with different CPU's.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5728 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-25 12:50:19 +00:00
Bart Van Assche
8995f1c241
ib_srpt: Speed up kernel driver unloading after a cable pull
...
When unloading the ib_srpt kernel module, instead of waiting until
all connected queue pairs have left the TimeWait state, destroy
these queue pairs immediately.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5727 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-25 11:46:43 +00:00
Bart Van Assche
262506de26
ib_srpt: Log QPN next to session name
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5726 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-25 11:41:55 +00:00
Bart Van Assche
8b26eb2bbe
ib_srpt: Kernel v3.17 build fix
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5725 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-25 11:36:33 +00:00