Bart Van Assche
f8ddae5770
Merge branch 'svn-trunk'
2015-09-02 21:13:48 -07:00
Bart Van Assche
2b5c929181
scst.spec.in: Sort kernel rpm by build time
...
Additionally, fix the logic for determining %{krpmver} if %{kdir} points
to another kernel version than the latest kernel version.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6496 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-09-02 18:43:13 +00:00
Bart Van Assche
e9de8f4a6c
Merge branch 'svn-trunk'
2015-09-01 17:58:05 -07:00
Bart Van Assche
1e9900d975
scst.spec: Make this spec file independent of the value of $PATH
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6495 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-09-01 18:20:09 +00:00
Bart Van Assche
e3d6a018a3
scst.spec: Derive kernel version from %{kdir} if set
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6494 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-09-01 18:12:54 +00:00
Bart Van Assche
af555c5645
Merge branch 'svn-trunk'
2015-08-31 19:32:21 -07:00
Bart Van Assche
0f13a54539
Revert "scst: Rework the code for waiting until an I/O context is ready"
...
This reverts commit 32cadc07df .
The only reason for this revert is to avoid merge conflicts with trunk
commit 0a4bce0392 .
2015-08-31 19:31:52 -07:00
Bart Van Assche
0a4bce0392
scst: Speed up command thread creation
...
Avoid hitting a 50 ms delay during thread creation.
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6493 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-09-01 02:29:02 +00:00
Bart Van Assche
35bca71f0c
scst.spec: Respect KDIR environment variable
...
Reported-by: Consus <consus@gmx.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6492 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-31 17:27:10 +00:00
Bart Van Assche
6c6a6e6ba3
scst.spec: Make version numbers monotonically increasing for the git tree
...
Additionally, make the fourth component of the version number configurable.
An example: make RPM REVISION=r733
Reported-by: Consus <consus@gmx.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6491 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-31 15:03:20 +00:00
Bart Van Assche
42cd180a9e
scst.spec: Fix code for determining kernel RPM version
...
I hit couple of issues in scst.spec.in:
1. krpmver sets to oldest available kernel rpm version (RedHat/Fedora
typically keeps 3 kernels), that causes rpm dependency on a wrong
kernel version
2. if system has a newer kernel version installed but not booted into
it yet, build goes against currently running kernel version,
disrespecting what KVER is set to.
Signed-off-by: Vitaly Mayatskih <v.mayatskih@gmail.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6490 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-28 17:04:04 +00:00
Bart Van Assche
1635447f32
scst.spec: Build in release mode
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6489 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-28 16:59:49 +00:00
Bart Van Assche
d4463ab1b5
scst_mem: Avoid that a debug statement can print an uninitialized value
...
This was detected by Coverity.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6488 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-27 18:40:55 +00:00
Bart Van Assche
dc070e83d8
RPM spec files: Add dependency clauses
...
scst.spec: Add "Requires: depmod find rm" and "Provides: scst"
scstadmin.spec: Add "Requires: rm"
Proposed-by: Consus <consus@gmx.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6487 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-27 17:56:52 +00:00
Bart Van Assche
175463ca84
isert-scst: Fix race condition between login request and scst teardown flow
...
On scst teardown we call rdma_disconnect() on all connections.
this moves the qps to error state and flushes all the wc, including
the drain wc which will results in kref_put of the connection.
In a race condition with the connection request, we might be only in
the init stage of the ref, and calling kref_put will result in refcount
0 and freeing the connection while establishing it.
Call the first kref_get before rdma_accept() to prevent this race.
Signed-off-by: Ariel Nahum <arieln@mellanox.com >
Signed-off-by: Yan Burman <yanb@mellanox.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6486 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-27 17:53:32 +00:00
Bart Van Assche
aa0730d5b5
Merge branch 'svn-trunk'
2015-08-26 20:39:25 -07:00
Bart Van Assche
3732ee39f8
scst: Introduce scst_pr_init() and scst_pr_cleanup()
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6485 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-26 23:34:36 +00:00
Bart Van Assche
2e5d1a4a6e
scst_user: Suppress a 'sparse' complaint
...
Avoid that sparse complains about casts that remove the address space
of an expression. This patch does not change any functionality.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6484 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-26 18:58:51 +00:00
Bart Van Assche
90a87ac5ab
Merge branch 'svn-trunk'
2015-08-25 17:47:14 -07:00
Bart Van Assche
a607b9c130
scst: Convert a printk(KERN_INFO) statement into a pr_info() statement
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6483 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-25 21:51:10 +00:00
Bart Van Assche
dba2b1ac6b
isert: Only set WR next pointer when needed
...
Signed-off-by: Yan Burman <yanb@mellanox.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6482 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-25 21:40:41 +00:00
Bart Van Assche
4fcec5f359
isert: Only set signalled flag when needed
...
Do not set signalled flag and then zero it for unneeded cases.
Instead only set it when necessary
Signed-off-by: Yan Burman <yanb@mellanox.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6481 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-25 21:40:11 +00:00
Bart Van Assche
58cfc4f8b8
iscsi: Only use thread pool for TCP but not for iSER
...
Signed-off-by: Yan Burman <yanb@mellanox.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6480 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-25 21:39:39 +00:00
Vladislav Bolkhovitin
63753d0572
scst: improve logging
...
Better to see in the logs in (S)IRQs wrong thread ID, than no thread ID under IRQ locks
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6479 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-25 03:44:31 +00:00
Vladislav Bolkhovitin
45d7f40ec1
Improve release logging
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6478 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-25 02:57:51 +00:00
Vladislav Bolkhovitin
20f523a1b3
Cleanup
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6477 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-25 02:56:08 +00:00
Bart Van Assche
52d98eb15a
nightly build: Update kernel versions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6476 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-22 01:02:40 +00:00
Bart Van Assche
0bbf234913
Merge branch 'svn-trunk'
2015-08-15 18:05:24 -07:00
Bart Van Assche
fc3c728625
scst_pres: Rename tid_size() into scst_tid_size()
...
This patch does not change any functionality.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6475 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-14 16:08:18 +00:00
Bart Van Assche
8eccc6c11d
Merge branch 'svn-trunk'
2015-08-11 18:03:29 -07:00
Bart Van Assche
06b83288fc
nightly build: Update kernel versions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6472 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-11 03:15:54 +00:00
Vladislav Bolkhovitin
24adbb53f8
scst: minor typo fix
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6471 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-10 21:46:19 +00:00
Bart Van Assche
12bbc6344a
Merge branch 'svn-trunk'
2015-08-08 14:25:28 -07:00
Bart Van Assche
c84af1f153
regression tests: Unload iSER target driver before the iSCSI target driver
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6470 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-08 21:24:57 +00:00
Bart Van Assche
fc11600c06
regression tests: Unload iSER target driver before the iSCSI target driver
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6469 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-08 20:42:21 +00:00
Bart Van Assche
64f97d58d5
Merge branch 'svn-trunk'
...
Conflicts:
www/contributing.html
2015-08-08 13:33:15 -07:00
Vladislav Bolkhovitin
77d6520882
fileio_tgt: small logging improvement
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6468 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-08 03:11:37 +00:00
Vladislav Bolkhovitin
51552b5b91
scst_user: microoptimization/cleanup
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6467 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-08 03:06:23 +00:00
Vladislav Bolkhovitin
90ad49cbae
scst_user: optimize performance by exchanging multiple commands/responses per IOCTL
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6466 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-08 02:57:14 +00:00
Vladislav Bolkhovitin
870b203225
Cleanup
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6465 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-08 02:54:02 +00:00
Vladislav Bolkhovitin
119a2d8356
Follow up for r6463
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6464 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-08 02:53:02 +00:00
Vladislav Bolkhovitin
2a5c739567
Web updates
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6463 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-07 02:30:42 +00:00
Bart Van Assche
6c3bcc7214
Merge branch 'svn-trunk'
2015-08-04 22:13:35 -07:00
Bart Van Assche
4c79dee448
nightly build: Update kernel versions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6462 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-05 04:56:26 +00:00
Bart Van Assche
7a9e1f1889
isert: Limit isert_nr_devs parameter to maximum we support
...
Signed-off-by: Yan Burman <yanb@mellanox.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6461 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-03 18:48:24 +00:00
Bart Van Assche
9105e9cf5d
isert: Don't overwrite userspace if insufficient buffer is provided
...
Signed-off-by: Yan Burman <yanb@mellanox.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6460 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-03 18:46:16 +00:00
Bart Van Assche
38f43250c5
Merge branch 'svn-trunk'
2015-07-31 06:41:41 -07:00
Vladislav Bolkhovitin
e5e54f312b
iscsi-scst: Move old TM response dropping to preparing new response stage
...
The second TM request can come while the old one, response for which is
going to be delayed, is still being processed, hence no response
prepared yet, so the delayed response should be dropped on the stage of
the new response preparing. Otherwise in this place the old delayed
response will trigger BUG_ON().
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6456 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-31 01:09:58 +00:00
Bart Van Assche
8853c2b4fd
Merge branch 'svn-trunk'
2015-07-29 20:37:40 -07:00
Bart Van Assche
06ef46415c
/etc/init.d/scst: Suppress an error message if iscsi-scstd is not installed
...
Avoid that the following error message is printed when stopping
or starting SCST if iscsi-scstd has not been installed:
# /sbin/service scst restart
which: no iscsi-scstd in
(/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin)
Restarting SCST
Signed-off-by: Hiroyuki Sato <hiroysato@gmail.com >
[bvanassche: Eliminated ISCSI_DAEMON variable]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6436 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-29 17:20:43 +00:00