Commit Graph

5971 Commits

Author SHA1 Message Date
Bart Van Assche
d790fc4cb3 qla2x00t-32gbit: Fix the build against upstream kernel v3.8
See also Linux kernel commit cf0282004166 ("UAPI: (Scripted) Disintegrate
include/scsi/fc") # v3.9.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8116 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-31 16:27:59 +00:00
Bart Van Assche
0c1d1f8c98 qla2x00t-32gbit, target: Backport to kernel v3.11 and before
Note: this code has not yet been tested.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8115 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-31 16:26:45 +00:00
Bart Van Assche
89e7abc377 qla2x00t-32gbit: Rework scsi-mq detection code
Kernel versions v3.13..v3.16 have block-mq but no scsi-mq. Fix the
build for these kernel versions by modifying the scsi-mq detection code.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8114 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-31 16:25:54 +00:00
Bart Van Assche
7fc7fa3987 qla2x00t-32gbit, target: Remove unnecessary freeing code
The qla2x00t-32gbit target code never assigns a value to se_sess->sess_tag_pool.
Hence there is no need to free the memory that pointer points at.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8113 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-31 16:25:06 +00: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
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
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
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
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
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
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
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
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
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
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
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
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
bd373cfa6e scst: Fix the kernel_write() backport for RHEL 6.x
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8078 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-25 22:05:10 +00:00
Bart Van Assche
60defdd286 scst_local: Remove duplicate Makefiles
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8077 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-25 20:13:11 +00:00
Bart Van Assche
70d3c72779 Makefiles: Use ccflags-y instead of EXTRA_CFLAGS
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8076 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-25 19:56:17 +00:00
Bart Van Assche
74e5b31b95 Makefiles: Use cc-option instead of enable-Wextra
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8075 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-25 19:55:15 +00:00
Bart Van Assche
623d4e6d0a Makefiles: Use build_mode instead of modifying the Makefile when switching the build mode
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8074 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-25 19:53:39 +00:00
Bart Van Assche
ef99fe40be fcst, srpt: Move the build_mode file to the top level
Additionally, rename BUILDMODE into BUILD_MODE and FCST/SRPTFLAGS into
BUILD_MODE_CFLAGS_.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8073 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-25 19:46:24 +00:00
Bart Van Assche
50bb06cc55 scst: Avoid that del_device suspends SCSI command processing
scst_unregister_virtual_device() modifies scst_dev_list and removes
the LUNs associated with the virtual device being removed. Due to 
previous patches these actions can be performed safely without
suspending SCSI command processing. Hence remove the suspend and
resume activity calls from scst_unregister_virtual_device().


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8072 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-25 16:46:43 +00:00
Bart Van Assche
6a6c844545 scst: Fix an scst_register_virtual_device_node() error path
This patch fixes commit 26d7fd0e3a ("scst: Do not suspend SCSI command
processing when adding a device") / r8025.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8071 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-25 16:41:45 +00:00
Bart Van Assche
11d56f4129 scst/include/backport.h: Fix the timer_setup() backport and add a from_timer() backport
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8070 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-25 04:19:24 +00:00
Bart Van Assche
c597df93a1 scst/include/backport.h: Make it possible to include this header file first
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8069 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-25 04:18:40 +00:00
Bart Van Assche
79d2236e79 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8068 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-24 20:02:42 +00:00
Bart Van Assche
3f2d50b589 scst: Do not suspend command processing when deleting a device
Now that freeing a device only happens after all commands associated
with the device have finished it is safe to not suspend command
processing when deleting a device.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8067 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-22 02:26:44 +00:00