Bart Van Assche
85249ae413
Merge branch 'svn-trunk'
2019-03-10 10:05:47 -07: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
0eacad533b
Merge branch 'svn-trunk'
2019-03-09 21:22:39 -08: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
56e98a2deb
Merge branch 'svn-trunk'
2019-03-09 20:45:29 -08: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
ca8ef0eef5
Merge branch 'svn-trunk'
2019-03-09 20:43:42 -08: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
46879ebd2a
Merge branch 'svn-trunk'
2019-03-09 18:28:59 -08: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
9fcbfdec97
Merge branch 'svn-trunk'
2019-03-09 17:31:56 -08: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
3c86e2773f
Merge branch 'svn-trunk'
2019-03-09 15:15:07 -08: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
e57e339397
Merge branch 'svn-trunk'
2019-03-08 18:16:07 -08: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
167a7291f0
Merge branch 'svn-trunk'
2019-03-07 19:06:56 -08: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
411652a9dd
Merge branch 'svn-trunk'
2019-03-07 19:02:51 -08: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
93038095e5
Merge branch 'svn-trunk'
2019-03-07 18:16:27 -08: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
771a5c193f
Merge branch 'svn-trunk'
2019-03-06 20:09:02 -08: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
cfa36bbbb3
Merge branch 'svn-trunk'
2019-03-06 19:46:45 -08: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
7d771b59ad
Merge branch 'svn-trunk'
2019-03-06 17:36:46 -08: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