8786 Commits

Author SHA1 Message Date
Yan Burman
025574018e isert: Support building against MOFED without patching the kernel build system
Additionally, print OFED flavor name while building and embed the
OFED flavor name in the module description.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@6139 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-03-03 11:25:37 +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
f59f2ab6ab scst_disk: Avoid overflow for large max_hw_sectors values
Avoid that max_sectors << block_shift overflows for large max_sectors
values by changing the test ((max_sectors << block_shift) < PAGE_SIZE)
into (max_sectors < (PAGE_SIZE >> block_shift)).

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6136 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-28 03:35:59 +00:00
Vladislav Bolkhovitin
88d8018183 Web updates for 3.0.1 release
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6135 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-25 05:18:02 +00:00
Bart Van Assche
7d3686b481 scstadmin: Suppress a Perl warning
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6134 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-24 14:46:10 +00:00
Bart Van Assche
1b31f90912 scripts/generate-release-archive: Include build_mode file in generated archives
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6132 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-24 14:36:38 +00:00
Bart Van Assche
d9c1ffa29a iscsi-scst/usr/Makefile: Fix include path
Use the SCST_INC_DIR variable passed by the parent Makefile such that
both the in-tree and out-of-tree builds work.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6130 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-24 14:10:54 +00:00
Bart Van Assche
94a4227449 Makefile: Add top-level release-archive target
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6127 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-24 13:36:12 +00:00
Bart Van Assche
1ffffec68a scripts/update-version: Add to repository
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6126 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-24 13:01:07 +00:00
Bart Van Assche
e8df6e739e scst.spec: Separate DKMS spec into a new spec file
Split scst.spec.in as follows:
* Keep the directives for generating an RPM that contains binary kernel
  modules in scst.spec.in. Add the kernel version number in the RPM name
  to make it possible to install RPMs for different kernel versions next
  to each other.
* Move the directives for generating a DKMS RPM into a new spec file. The
  name of this spec file does not contain a kernel version since the DKMS
  RPM is independent of the kernel version against which it has been built.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6125 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-23 14:48:56 +00:00
Bart Van Assche
857a4c97fe SVN_TAGS: Add 3.0.x/3.0.0 version information
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6116 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-23 13:02:53 +00:00
Bart Van Assche
a1a3a3d6ee nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6114 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-22 09:57:50 +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
1d8c5653a1 scstadmin: Correct rem_group and rem_init help text
Signed-off-by: Aayush Kasurde <aayush.kasurde@gmail.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6108 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-20 10:37:14 +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
Yan Burman
ed3a17ca7a isert: Fix crash on listener close while in login/logout loop
Signed-off-by: Yan Burman <yanb@mellanox.com>

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@6088 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-16 08:59:32 +00:00
Bart Van Assche
f80ab08f9f nightly build: Update a kernel version
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6087 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-15 09:07:44 +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
5019ae319e scst: Introduce file_inode()
Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
[bvanassche: Constified file_inode() argument / added iscsi-scst conversion]


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6084 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-12 07:48:10 +00:00
Yan Burman
ea5e08e74b isert: Fix crash on service stop when under heavy login/logout load
Signed-off-by: Yan Burman <yanb@mellanox.com>

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@6081 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-11 13:05:34 +00:00
Yan Burman
90faade1cc isert: Fix case where we got disconnect before login character device was opened
We may receive disconnect before iscsi-scstd had the chance to open
the character device. This would result in resource leak, since the device will not be freed.
Fix this by only increasing reference once the device is actually opened.

Signed-off-by: Yan Burman <yanb@mellanox.com>

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@6080 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-11 13:05:20 +00:00
Bart Van Assche
160e772a2f iSCSI-SCST: Include iSER source files in nightly build
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@6037 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-10 10:42:39 +00:00
Bart Van Assche
3c1a3ce259 nightly.conf: Merge from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@6036 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-10 08:30:26 +00:00
Bart Van Assche
d3e283bc44 scst_debug.h: Remove duplicate pr_warn() definition
A backport of pr_warn() is already present in <scst/scst.h> so
remove the pr_warn() definition from <scst/scst_debug.h>.


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@6035 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-10 08:26:34 +00:00
Bart Van Assche
97711db2b6 iscsi-scst/usr/param.c: Remove an empty trailing line
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@6034 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-10 08:14:28 +00:00
Bart Van Assche
a565e48819 scst_vdisk: Source code comment spellig fixes (merge r6022:6024 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@6033 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-10 08:12:58 +00:00
Bart Van Assche
739c9025db scst_scsi_exec_async(): Fix a recently introduced memory leak (merge r6016 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@6032 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-10 08:11:35 +00:00
Bart Van Assche
8fbfa14da6 scst_targ: Source code comment spellig fix (merge r6025 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@6031 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-10 08:10:08 +00:00
Bart Van Assche
4696f90f07 ib_srpt: Merge r5990:6028 from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@6030 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-10 08:08:51 +00:00
Bart Van Assche
b362b6453e Docs updates (merge r6015 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@6029 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-10 08:07:10 +00:00
Bart Van Assche
087c7352ac srpt/README: Document how to configure scsi-mq at the initiator side
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6028 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-09 09:27:38 +00:00