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
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
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
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
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
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
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
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
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
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
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
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
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
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