Commit Graph

5904 Commits

Author SHA1 Message Date
Bart Van Assche
c8d8d7fbbe isert-scst: Fix several checkpatch warnings
This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8047 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-11 03:47:48 +00:00
Bart Van Assche
a4c05a4b31 scst: Backport the percpu-ref code to kernel version 3.17 and before
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8046 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-11 02:53:24 +00:00
Bart Van Assche
b9969a09a5 scst: Simplify the percpu-ref code for RHEL 7
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8045 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-11 02:51:09 +00:00
Bart Van Assche
3d35b7477f scst: Avoid switching explicitly to per-cpu
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8044 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-11 02:50:21 +00:00
Bart Van Assche
34cf8f2d5d scripts/run-regression-tests: Make sure CONFIG_STACK_VALIDATION is disabled
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8043 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-10 17:05:20 +00:00
Bart Van Assche
68b40638de scripts/specialize-patch: Add support for UEK_KABI_RENAME
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8042 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-10 16:45:23 +00:00
Bart Van Assche
c9d03b0275 scst: Remove recently introduced trailing whitespace
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8041 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-10 16:35:14 +00:00
Bart Van Assche
eb6a056300 scst, LUN replacement: Add a missing if-test
This was detected by smatch.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8040 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-10 16:31:48 +00:00
Bart Van Assche
b80e470e36 scst: Remove recently introduced trailing whitespace
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8039 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-10 16:28:37 +00:00
Bart Van Assche
f7e7b5f17f nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8038 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-10 16:23:16 +00:00
Bart Van Assche
c03a6ffd5e scst, backport.h: Fix RHEL 7 build
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8037 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-10 05:18:41 +00:00
Bart Van Assche
c9680a33ec scst: Add a percpu_ref backport for kernel versions before 3.11, e.g. RHEL 6
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8036 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-10 05:14:42 +00:00
Bart Van Assche
f2342573a1 scst: Rework per-device command reference counting
Restore the original meaning of dev_cmd_count and introduce the refcnt
member.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8035 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-10 04:45:00 +00:00
Bart Van Assche
9380e29a27 scst, tgt_dev: Hold a reference on struct scst_device
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8034 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-10 04:43:31 +00:00
Bart Van Assche
e161c14a57 scst, acg_dev: Hold a reference on struct scst_device
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8033 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-10 04:40:49 +00:00
Bart Van Assche
ec3c6b5a11 scst_copy_mgr, initial inquiry: Hold a reference on struct scst_device
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8032 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-10 04:39:05 +00:00
Bart Van Assche
3bcc08ebed scst_vdisk: Hold a reference on the associated struct scst_device
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8031 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-10 04:38:33 +00:00
Bart Van Assche
cdfabd20ed scst_lib: Remove a superfluous if-condition
Since earlier code dereferences res->tgt_dev, res->tgt_dev can't be
NULL when the if (res->tgt_dev) code is reached. Hence remove the
if (res->tgt_dev != NULL) check.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8030 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-10 04:37:52 +00:00
Bart Van Assche
5a17d29821 scst_targ: Add a consistency check in __scst_rx_cmd()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8029 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-10 04:33:51 +00:00
Bart Van Assche
b87aa0f004 fcst: Remove support for kernel versions <= 2.6.36
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8028 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-10 02:28:44 +00:00
Bart Van Assche
759bdca73a scst: Use a per-cpu counter to track the number of commands per device
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8027 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-10 01:24:43 +00:00
Bart Van Assche
53fdc293e2 scst: Use a per-cpu counter for sessions
Make scst_alloc_session() initialize sess->refcnt to 1 instead of 0.
Compensate this by removing an scst_get() call from __scst_register_session().



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8026 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-10 01:18:17 +00:00
Bart Van Assche
26d7fd0e3a scst: Do not suspend SCSI command processing when adding a device
Since the only global data structure that is modified by the code that adds
a device (scst_dev_list) is consistently protected by scst_mutex, suspending
command processing when adding a device is not necessary.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8025 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-10 01:10:11 +00:00
Bart Van Assche
46698cc77d scstadmin: Enable Perl warnings
Make the Perl interpreter complain about dubious Perl constructs.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8024 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-10 01:01:59 +00:00
Bart Van Assche
398af246b5 scst: Remove an empty directory
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8023 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-09 23:12:50 +00:00
Bart Van Assche
78d6da4517 scst: Remove obsolete exec_req_fifo kernel patches
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8022 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-09 23:11:47 +00:00
Bart Van Assche
24a5d97db9 scst: Remove old kernel readahead patches
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8021 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-09 23:09:58 +00:00
Bart Van Assche
1b23ac9120 scripts/specialize-patch: Support specializing a patch for RHEL 6.x/7.x
This patch is based on a patch from <orlov@soligran.ru>.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8020 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-09 23:08:47 +00:00
Bart Van Assche
cbca6ada82 fcst: Add an rcu_barrier() call
fcst uses call_rcu() hence rcu_barrier() must be called before module
unloading finishes.

Fixes: 6023f1ad34 ("This patch adds a new target module for SCST and libfc that accepts FCP requests from libfc HBAs running Fibre Channel over Ethernet (FCoE) and passes them to SCST.") # v3.0.0 (r1514).



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8019 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-09 23:05:17 +00:00
Bart Van Assche
18cd60d67e scst: Port to Oracle Linux 7 UEKR5
See also https://yum.oracle.com/oracle-linux-7.html.

Reported-by: Jose Martins <jose.martins2307@gmail.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8018 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-08 17:48:14 +00:00
Bart Van Assche
230f594cc6 scst: Introduce two local variables
This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8017 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-08 03:06:36 +00:00
Bart Van Assche
ed0ed73f08 scst: Remove scst_mgmt_cmd.scst_get_called
This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8016 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-08 03:01:27 +00:00
Bart Van Assche
1698ec7944 scripts/kernel-functions: Backport the -fno-PIE patch to the 2.6 kernel series
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8015 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-08 02:19:44 +00:00
Bart Van Assche
450ee268cb nightly build: Restore a recently removed double quote
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8014 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-07 18:11:45 +00:00
Bart Van Assche
0351c0ec09 fcst: Remove ft_cmd_flag()
This function is no longer used. r8010 removed the last user of this function.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8013 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-07 17:59:10 +00:00
Bart Van Assche
17ef76b3d1 Change (int)ARRAY_SIZE(...) back into ARRAY_SIZE(...)
This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8012 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-07 17:54:26 +00:00
Bart Van Assche
e167e2ebb7 nightly build: Remove kernel version 2.6.30 and older
Or in other words, focus on RHEL 6 (kernel 2.6.32) and later.




git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8011 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-07 17:20:01 +00:00
Bart Van Assche
e680de4602 fcst: Remove ft_cmd_dump() and ft_cmd_tm_dump()
Functions that dump the state of SCSI commands and task management functions
should occur in the SCST core instead of in target drivers. If anyone needs
this functionality it should be moved into the SCST core.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8010 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-07 04:08:41 +00:00
Bart Van Assche
d56aea893b nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8008 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-07 03:33:42 +00:00
Bart Van Assche
3e0790141a scripts/kernel-functions: Fix -fno-PIE backport
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8007 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-07 01:36:31 +00:00
Bart Van Assche
e87970d094 scripts/specialize-patch: Remove a duplicate test
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8003 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-05 02:25:33 +00:00
Bart Van Assche
c56606c0df Update Subversion ignore lists
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8002 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-02 21:36:48 +00:00
Bart Van Assche
7cb8e9bdb6 scst/src/scst_proc.c: Remove this file
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8001 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-02 20:07:49 +00:00
Bart Van Assche
87d82bfa8f Remove documentation references to procfs
Now that procfs has been removed, remove the references to procfs from
the documentation.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8000 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-02 20:06:25 +00:00
Bart Van Assche
08e532715d Remove procfs support
Since all RHEL/CentOS 5 users have upgraded to a newer version, procfs
support is no longer necessary. Hence remove procfs support. This patch
has been generated as follows:

git grep -lw CONFIG_SCST_PROC iscsi-scst qla2x00t scst scst_local srpt |\
  while read f; do
    echo ${f}
    unifdef -U CONFIG_SCST_PROC ${f} >${f}.out
    mv ${f}.out ${f}
  done

followed by two small manual edits in scst/include/scst.h and also in
qla2x00t/qla2x00-target/qla2x00t.c.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7999 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-02 20:04:25 +00:00
Bart Van Assche
81c9a1f49d make uninstall: Do not remove /usr/local/sbin
Reported-by: Heiner Lesaar <heiner.lesaar@googlemail.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7998 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-01 04:15:01 +00:00
Bart Van Assche
d4a52e777e scst: Fix the get_user_pages() backport for kernel versions >= v4.4.168
The get_user_pages() calling convention has been changed in kernel v4.4.168.
Make sure that SCST passes the correct arguments.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7997 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-02-28 22:03:44 +00:00
Bart Van Assche
de656af3f0 scripts/kernel-functions: Avoid that compilation fails with "error: code model kernel does not support PIC mode"
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7996 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-02-28 22:01:28 +00:00
Bart Van Assche
b4d66ec4bc nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7995 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-02-27 14:44:48 +00:00
Bart Van Assche
5b22c26d42 scst_vdisk: Fix a use-after-free
This patch fixes Coverity ID 333128.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7993 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-02-25 05:48:05 +00:00