Bart Van Assche
2faef1df2b
Merge branch 'svn-trunk'
2019-03-31 09:21:45 -07:00
Bart Van Assche
e24843ced5
scst: Fix kvfree() backport version check for kernel versions v3.12.41..
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8112 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-31 04:20:09 +00:00
Bart Van Assche
67a594c69d
Merge branch 'svn-trunk'
2019-03-28 21:25:25 -07:00
Bart Van Assche
8435275aec
scripts/rhel-rpm-functions: Remove because no longer used
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8111 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 04:25:14 +00:00
Bart Van Assche
9b4f212b09
scripts/generate-scst-patch: Remove this script because it is no longer used
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8110 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 04:24:35 +00:00
Bart Van Assche
43121e7ef1
qla2x00t: Add temporary directories used by generate-kernel-patch to the tree
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8109 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 04:23:54 +00:00
Bart Van Assche
41420d6e8a
Merge branch 'svn-trunk'
2019-03-28 18:49:57 -07:00
Bart Van Assche
e20ffb84ab
qla2x00t-32gbit: Backport to RHEL 6
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8108 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:45:30 +00:00
Bart Van Assche
2cd3351cb3
qla2x00t-32gbit: Backport to kernel v3.10
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8107 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:44:34 +00:00
Bart Van Assche
c03a1817ad
qla2x00t-32gbit: Backport to kernel v4.8
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8106 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:43:54 +00:00
Bart Van Assche
849adf540b
qla2x00t-32gbit: Backport to kernel v4.9
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8105 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:43:15 +00:00
Bart Van Assche
a0d4136e5c
qla2x00t-32gbit: Backport to kernel v4.10
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8104 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:41:49 +00:00
Bart Van Assche
1ccf739c01
qla2x00t-32gbit: Backport to RHEL 7
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8103 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:41:13 +00:00
Bart Van Assche
3738fc934d
qla2x00t-32gbit: Backport to kernel v4.13
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8102 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:40:12 +00:00
Bart Van Assche
c691d06806
qla2x00t-32gbit: Backport to kernel v4.19
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8101 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:39:36 +00:00
Bart Van Assche
2b876f7093
qla2x00t-32gbit, target: Port to kernel-v5.1-rc2
...
Switch from percpu_ida to sbitmap since percpu_ida has been removed.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8100 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:38:40 +00:00
Bart Van Assche
34bbbf47d8
qla2x00t-32gbit, target: Avoid using the protocol_data member
...
Avoid using this structure member since it is not available in kernel
versions before v4.2. See also commit 7a971b1b3055 ("target: replace
se_cmd->execute_rw with a protocol_data field") # v4.2.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8099 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:37:50 +00:00
Bart Van Assche
39232f985c
qla2x00t-32gbit, target: Use an on-stack completion instead of cmd_wait_comp
...
This patch avoids that the se_cmd.cmd_wait_comp member is used. See also
Linux kernel commit 7b2cc7dc0dbf ("scsi: target: Simplify the code for
waiting for command completion") # v4.19.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8098 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:36:41 +00:00
Bart Van Assche
6d5464f017
qla2x00t-32gbit, target: Use kvcalloc() instead of open-coding it
...
This patch does not change any functionality.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8097 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:35:42 +00:00
Bart Van Assche
fb5e8d28fd
qla2x00t-32gbit, target: Remove a set-but-not-used variable
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8096 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:34:52 +00:00
Bart Van Assche
fd3fa5df34
qla2x00t-32gbit, target: Remove a kvfree() call
...
Since the target code never assigns a value to se_sess->sess_cmd_map,
calling kvfree on that pointer is not necessary.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8095 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:33:54 +00:00
Bart Van Assche
fc4c99dccd
qla2x00t-32gbit: Upgrade initiator code to the code from kernel v5.1-rc2
...
This patch is the output of git diff v4.18.20..v5.1-rc2 drivers/scsi/qla2xxx.
Only one manual change has been applied, namely the removal of
"cmd->se_cmd.map_cpu = cpu;" from qlt_alloc_qfull_cmd().
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8094 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:32:45 +00:00
Bart Van Assche
a65843ec45
qla2x00t-32gbit, target: Fix W=1 warnings
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8093 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:31:36 +00:00
Bart Van Assche
1bef9a0ff9
qla2x00t-32gbit, target: Fix in-tree build
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8092 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:30:34 +00:00
Bart Van Assche
b8a1634ced
qla2x00t-32gbit: Import this driver into the SCST repository
...
The source code in this commit is a combination of the v4.18.20 qla2xxx
driver and the QLogic target driver from the QLogic git repository
(commit ac4faf74f437 ("qla2xxx: Fix session creation fail")).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8091 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:29:46 +00:00
Bart Van Assche
e97314ebd7
scst/include/backport.h: Suppress a compiler warning triggered by including <scsi/scsi_transport_fc.h>
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8090 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:27:45 +00:00
Bart Van Assche
860d663019
Merge branch 'svn-trunk'
2019-03-28 18:19:52 -07:00
Bart Van Assche
c8533e86a4
scst/include/backport.h: Fix kvcalloc() backport
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8089 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:19:28 +00:00
Bart Van Assche
859a747af0
Merge branch 'svn-trunk'
2019-03-28 18:17:50 -07:00
Bart Van Assche
ed9cd7b1c8
scst: Fix percpu_ref_init() GFP mask
...
Fixes: 53fdc293e2 ("scst: Use a per-cpu counter for sessions") (trunk r8026).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8088 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-28 16:46:21 +00:00
Bart Van Assche
59ecf94f38
Merge branch 'svn-trunk'
2019-03-27 22:16:45 -07:00
Bart Van Assche
2e377ec4c0
nightly build: Update kernel versions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8087 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-28 05:10:37 +00:00
Bart Van Assche
908274ee6b
Merge branch 'svn-trunk'
2019-03-27 19:27:32 -07:00
Bart Van Assche
796edfc6f8
scst/include/backport.h: Fixes for RHEL 6 and 7
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8086 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-28 02:25:41 +00:00
Bart Van Assche
cd18ad10de
Merge branch 'svn-trunk'
2019-03-27 18:08:09 -07:00
Bart Van Assche
23a2753a9c
scst/include/backport.h: Add backports for additional kernel functions, constants and data structures
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8085 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-27 23:09:20 +00:00
Bart Van Assche
2c1b4e7188
Merge branch 'svn-trunk'
2019-03-25 19:03:49 -07:00
Bart Van Assche
0bc77ddfd2
qla2x00t, regression tests: Move QLogic target code
...
Move the QLogic target code from drivers/scst/qla2x00-target/ to
drivers/scsi/qla2xxx/.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8084 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-26 02:03:17 +00:00
Bart Van Assche
bf9fd22294
scripts/generate-kernel-patch: Fix shellcheck warnings
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8083 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-26 02:02:07 +00:00
Bart Van Assche
14e9e10432
qla2x00t, regression tests: Move QLogic target code
...
Move the QLogic target code from drivers/scst/qla2x00-target/ to
drivers/scsi/qla2xxx/.
2019-03-25 19:00:39 -07:00
Bart Van Assche
55a0bfacbe
scripts/generate-kernel-patch: Fix shellcheck warnings
2019-03-25 18:47:39 -07:00
Bart Van Assche
f8b867d338
Merge branch 'svn-trunk'
2019-03-25 16:31:23 -07:00
Bart Van Assche
cb194c3c1b
scripts/specialize-patch: Fix handling of #endif followed by a tab
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8082 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-25 23:30:32 +00:00
Bart Van Assche
c4b5a7d3ca
Merge branch 'svn-trunk'
2019-03-25 15:51:46 -07:00
Bart Van Assche
0221741457
qla2x00t: Remove instructions to rebuild the kernel
...
Since the zero-copy patch is no longer supported it is no longer necessary
to rebuild the kernel in order to use SCST.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8081 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-25 22:51:39 +00:00
Bart Van Assche
3282430ba4
Merge branch 'svn-trunk'
2019-03-25 15:36:11 -07:00
Bart Van Assche
32261be1d8
qla2x00t/qla2x00-target/Makefile: Fix the path from where the SCST Modules.symvers file is read
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8080 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-25 22:36:03 +00:00
Bart Van Assche
a306e73e7b
Merge branch 'svn-trunk'
2019-03-25 15:10:30 -07:00
Bart Van Assche
dc7e039124
Makefiles: Remove most instances of $(SCST_INC_DIR)
...
Move the $(SCST_INC_DIR) definitions from the out-of-tree sections into
the in-kernel sections. Since SCST is now distributed as a single tar
archive, only support in-tree builds with $(SCST_INC_DIR) and $(SCST_DIR).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8079 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-25 22:10:21 +00:00
Bart Van Assche
df9ac1b475
Merge branch 'svn-trunk'
2019-03-25 15:06:52 -07:00