Bart Van Assche
50e31529c4
scst_vdisk: Introduce a union in struct vdisk_cmd_params
...
This patch does not change any functionality but makes a later patch
easier to read.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7513 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-14 04:07:53 +00:00
Bart Van Assche
19c9aec2f7
vdisk_fileio: Remove the page cache based zero-copy implementation
...
A new zero-copy implementation will be added in a later patch.
This patch reverts most of r4213.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7512 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-14 04:07:04 +00:00
Bart Van Assche
9e740aa986
scst_vdisk: Fix spelling in a source code comment
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7511 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-14 04:06:21 +00:00
Bart Van Assche
79aa0e4b31
scst/README_in-tree: Remove this file
...
Instead of keeping scst/README and scst/README_in-tree in sync, remove
the latter. This file can always be restored if necessary.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7510 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-14 04:04:52 +00:00
Bart Van Assche
ec73c01358
scst_local: Use all CPUs for command processing
...
This patch modifies scst_local such that on kernel version 3.19 and
later multiple hardware queues are used (scsi-mq). Note: in order
to benefit from concurrent processing, the number of SCST command
threads must be set to a value above one.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7509 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-14 04:03:57 +00:00
Bart Van Assche
2f1cc8382f
scst_local: Rename SCpnt into scmd
...
This patch does not change any functionality but brings the scst_local
source code more in line with recent upstream SCSI LLDs.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7508 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-14 04:02:58 +00:00
Bart Van Assche
11a975ffad
scst: Add -Wno-sign-compare for clang
...
This patch avoids that clang complains about mixed sign comparisons.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7507 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-14 04:01:50 +00:00
Bart Van Assche
8bec8ffea3
scripts/checkpatch: Add a script that analyzes all SCST files with checkpatch
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7506 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-14 03:58:46 +00:00
Bart Van Assche
e2a17c6a24
Change 'long long int' int 'long long'
...
This patch does not change any functionality.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7505 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-14 03:57:53 +00:00
Bart Van Assche
4cd532a987
Multiple files: Remove trailing whitespace
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7504 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-14 03:55:02 +00:00
Bart Van Assche
24d05c4198
Merge branch 'svn-trunk'
2018-10-13 08:03:45 -07:00
Bart Van Assche
5cec097939
nightly build: Update kernel versions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7503 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-13 14:41:59 +00:00
Bart Van Assche
536a60cbbc
Merge branch 'svn-trunk'
2018-10-07 19:44:46 -07:00
Bart Van Assche
1017c302f2
scst: Revert r7501 because it didn't have the intended effect
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7502 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-08 02:42:21 +00:00
Bart Van Assche
3d1b6c7ef8
scst: Do not complain about mixed signedness comparisons
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7501 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-08 01:41:26 +00:00
Bart Van Assche
e24d6f633b
Merge branch 'svn-trunk'
2018-10-07 18:41:24 -07:00
Bart Van Assche
10333e8496
scst/include/backport.h: Avoid mixed-signedness comparisons
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7500 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-08 01:37:48 +00:00
Bart Van Assche
29e2efd291
Merge branch 'svn-trunk'
2018-10-07 09:32:18 -07:00
Bart Van Assche
3e5796d178
scst: Reformat scst_*_nolockdep() macro definitions
...
Avoid that the definitions of these macros exceed 80 columns.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7499 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-07 16:21:29 +00:00
Bart Van Assche
fa3a6738ec
scst: Remove trailing whitespace from documentation and Makefile
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7498 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-07 16:13:55 +00:00
Bart Van Assche
b7a07caea4
Merge branch 'svn-trunk'
2018-10-06 15:01:33 -07:00
Bart Van Assche
a1c2a08d95
scst_vdisk: Make the filename modifiable
...
When VAAI support is not needed can be convenient to use the
vdisk_blockio handler to handle I/O redirection between nodes in a
H.A. setup. Making the filename modifiable allows to keep the LUN
associations of an SCST device that is used for I/O redirection in
such a setup. This is a slightly modified version of a patch
provided by Marc Smith <marc.smith@parodyne.com >.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7497 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-06 21:59:54 +00:00
Bart Van Assche
5b56580253
scst: Introduce __scst_unblock_aborted_cmds()
...
This patch does not change any functionality but makes it easier for
static analyzers like sparse and smatch to verify locking in
scst_unblock_aborted_cmds().
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7496 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-06 21:57:50 +00:00
Bart Van Assche
090252f695
cst/include/backport.h: Add a printk_once() backport
...
This patch is only relevant for regression testing SCST against kernel
2.6.29 or older.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7495 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-06 21:42:02 +00:00
Bart Van Assche
c4d0b670e9
scst: Fix spelling of 'delimiter' in source code comments
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7494 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-06 21:41:30 +00:00
Bart Van Assche
04068c8a9e
Merge branch 'svn-trunk'
2018-10-03 20:34:24 -07:00
Bart Van Assche
915d3b7430
scst/README: Fix spelling
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7493 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-04 03:29:47 +00:00
Bart Van Assche
67afa9a423
Merge branch 'svn-trunk'
2018-10-02 19:48:57 -07:00
Bart Van Assche
9c0a2c89a9
scst: Remove references to scripts to rebuild the Linux kernel
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7492 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-03 01:49:06 +00:00
Bart Van Assche
3bc04b2b43
scst, iscsi-scst: Remove instructions to rebuild the Linux kernel
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7491 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-03 01:47:16 +00:00
Bart Van Assche
773e6557bf
Merge branch 'svn-trunk'
2018-10-02 18:45:00 -07:00
Bart Van Assche
5470ff4986
scripts/rebuild-rhel-kernel-rpm: Remove this script
...
Since rebuilding the RHEL kernel is no longer recommended, remove the script
that rebuilds the RHEL kernel RPM.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7490 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-03 01:44:26 +00:00
Bart Van Assche
049f21b7c9
Merge branch 'svn-trunk'
2018-10-02 06:14:26 -07:00
Bart Van Assche
92acee3c25
scst/include/backport.h: RHEL 7 build fix
...
Avoid that compilation fails on RHEL 7 due to a duplicate definition of
rdtsc().
Reported-by: Anton Kulshenko <shallriseagain@gmail.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7489 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-02 13:12:33 +00:00
Bart Van Assche
9a8c5d8459
scst/include/backport.h: Restore the proper vzalloc() backport
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7488 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-02 13:03:49 +00:00
Bart Van Assche
adadaa88e3
Merge branch 'svn-trunk'
2018-10-01 17:41:33 -07:00
Bart Van Assche
9d89cc7148
scst/include/backport.h: Remove the vzalloc() backport
...
The supported stable kernels before 2.6.37 already include a backported
version of vzalloc().
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7487 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-02 00:41:21 +00:00
Bart Van Assche
4a3d410f57
Merge branch 'svn-trunk'
2018-09-27 06:48:21 -07:00
Bart Van Assche
fa3c482bb3
scst: Build fix for kernel versions <= v4.8
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7485 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-09-27 13:47:43 +00:00
Bart Van Assche
507eea5808
Merge branch 'svn-trunk'
2018-09-26 21:09:42 -07:00
Bart Van Assche
5f1cf8cf1d
scst: Add a new latency measurement infrastructure
...
An example of the data produced by this infrastructure:
$ echo 1 >/sys/kernel/scst_tgt/measure_latency
$ sleep 10 # Wait until an initiator has submitted multiple I/O requests
$ cat /sys/kernel/scst_tgt/targets/ib_srpt/fe80\:0000\:0000\:0000\:0002\:c903\:00fa\:b7f2/sessions/fe80\:0000\:0000\:0000\:0002\:c903\:00a3\:4272/latency/r512
state count min max avg stddev
PARSE 219 1.3 26.6 2.2 2.5 us
PREPARE_SPACE 219 0.9 10.3 1.1 0.6 us
RDY_TO_XFER 219 0.7 1.7 0.7 0.2 us
TGT_PRE_EXEC 219 0.7 11.0 0.8 0.9 us
EXEC_CHECK_SN 219 0.7 1.7 0.8 0.2 us
PRE_DEV_DONE 219 11.3 3445.7 39.6 276.4 us
DEV_DONE 219 0.7 11.0 0.9 0.7 us
PRE_XMIT_RESP1 219 1.2 58.4 1.6 3.8 us
CSW2 219 0.7 1.6 0.8 0.1 us
PRE_XMIT_RESP2 219 0.7 1.5 0.7 0.1 us
XMIT_RESP 219 0.7 1.5 0.7 0.1 us
INIT_WAIT 219 1.0 57.3 2.1 4.4 us
INIT 219 0.9 27.4 1.6 2.4 us
CSW1 219 15.0 3856.1 74.2 264.8 us
EXEC_CHECK_BLOCKING 219 1.3 10.8 1.7 0.9 us
LOCAL_EXEC 219 0.7 1.8 0.7 0.1 us
REAL_EXEC 219 0.6 1.5 0.7 0.1 us
EXEC_WAIT 219 40.6 1021.7 54.4 68.7 us
XMIT_WAIT 219 6.4 1682.0 50.6 228.1 us
total 219 - - 236.9 2012.1 us
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7484 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-09-27 04:09:27 +00:00
Bart Van Assche
8e454788bd
scst: Improve kernel v4.18 block request allocation code further
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7483 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-09-27 04:08:16 +00:00
Bart Van Assche
441d29e6a6
Merge branch 'svn-trunk'
2018-09-26 21:03:17 -07:00
Bart Van Assche
eeed9fc41e
scst: Introduce the function scst_set_cmd_state()
...
This patch does not change any functionality.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7482 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-09-27 02:28:16 +00:00
Bart Van Assche
f1357f410e
scst: Remove the existing latency measurement infrastructure
...
Remove the existing latency measurement infrastructure since it will be
replaced by a new and more powerful latency measurement infrastructure.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7481 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-09-27 02:25:43 +00:00
Bart Van Assche
2231b598c6
scst: Make command state numbers consecutive
...
This makes it easier for the compiler to optimize command state
switch statements.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7480 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-09-27 02:24:38 +00:00
Bart Van Assche
75b78880d0
scst: Fix block request allocation for kernel v4.18 and later
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7479 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-09-27 02:23:57 +00:00
Bart Van Assche
e2e076cb84
qla2x00t: Add #include <linux/vmalloc.h>
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7478 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-09-27 02:22:57 +00:00
Bart Van Assche
b4c880013c
Merge branch 'svn-trunk'
2018-09-25 20:48:16 -07:00
Bart Van Assche
b5c7df62aa
qla2x00t: Fix build against kernel versions >= v4.2
...
Reported-by: Pascal de Bruijn <p.debruijn@unilogic.nl >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7476 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-09-26 03:48:12 +00:00