Commit Graph

749 Commits

Author SHA1 Message Date
Bart Van Assche
8487f56149 Merge branch 'svn-trunk' 2018-04-13 20:15:44 -07:00
Vladislav Bolkhovitin
f549829482 Copyrights updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7396 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-04-12 03:49:10 +00:00
Bart Van Assche
ea885e85cf scst/include/backport.h: Rework the DEFINE_TIMER() backport such that it also works with kernel 3.6 and before 2018-03-06 22:24:21 -08:00
Bart Van Assche
cfc340381e scst/include/backport.h: Rework the DEFINE_TIMER() backport such that it also works with kernel 3.6 and before
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7387 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-03-07 01:05:31 +00:00
Bart Van Assche
a1b4c9e2fc scst_lib: Port task management debug code to kernel v4.15
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7385 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-03-04 19:38:02 +00:00
Bart Van Assche
c58b8e71fc scst_lib: Port task management debug code to kernel v4.15 2018-03-04 11:29:18 -08:00
Bart Van Assche
78f7b0c596 Merge branch 'svn-trunk' 2018-02-22 20:12:10 -08:00
Vladislav Bolkhovitin
464b87730c scst: make tgt_dev per-CPU array directly referenced
Modern distributions come with kernels configured for thousands CPUs
(NR_CPUS), which leads to per-CPU array of SGV pool references in each
tgt_dev exceed tens of KB requiring high order page allocations that are
not reliable on aged systems leading to inabilities to create new
sessions.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7373 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-02-16 05:27:51 +00:00
Bart Van Assche
31b5d8ee79 Merge branch 'svn-trunk' 2018-02-10 08:13:49 -08:00
Bart Van Assche
a8e299b5e6 scst_const.h: Make WRITE_VERIFY_16 available to user space applications
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7370 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-02-10 05:58:02 +00:00
Bart Van Assche
8ab8549e89 Merge branch 'svn-trunk' 2018-02-04 16:12:15 -08:00
Bart Van Assche
f0f5c0ae40 scst: Port DEFINE_TIMER() instances to kernel v4.15
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7361 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-02-05 00:12:07 +00:00
Bart Van Assche
719ecbea2a Merge branch 'svn-trunk' 2018-02-04 15:58:36 -08:00
Bart Van Assche
c036d7afc3 scst/include/scst_debug.h: Insert a space to keep checkpatch happy
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7359 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-02-04 23:56:31 +00:00
Bart Van Assche
c75cbf1aa6 Merge branch 'svn-trunk' 2018-01-31 20:21:45 -08:00
Vladislav Bolkhovitin
2e5ed15fb0 scst: disabled global allocated memory limits
See scst_max_cmd_mem module parameter for more info. Allows to avoid 2
global atomic variables on the fast path, hence get better multi-queue
performance.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7346 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-01-31 23:45:04 +00:00
Bart Van Assche
fce9dbfdbd Merge branch 'svn-trunk' 2018-01-20 08:58:04 -08:00
Vladislav Bolkhovitin
4555e7c553 scst: add possibility to create multi-queue sessions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7341 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-01-20 05:04:50 +00:00
Bart Van Assche
6797f41ceb Merge branch 'svn-trunk' 2018-01-04 21:34:09 -08:00
Vladislav Bolkhovitin
cbc53b12c8 scst_vdisk: lower severity of message about not supported fallocate(FALLOC_FL_PUNCH_HOLE|FALLOC_FL_KEEP_SIZE) and print it only once
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7328 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-01-05 05:14:03 +00:00
Vladislav Bolkhovitin
a5e93d46b0 scst: fix displaying "mgmt" sysfs help information
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7327 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-01-05 05:02:32 +00:00
Bart Van Assche
eea5ef2aa5 Merge branch 'svn-trunk' 2017-12-30 21:23:50 -08:00
Bart Van Assche
4d81f8e174 scst_debug.h: Avoid that smatch complains about passing a pointer to format specifier %lx
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7309 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-12-30 03:37:31 +00:00
Bart Van Assche
45128613ab scst: Backport timer_setup() to kernel versions before v4.10
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7305 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-12-30 00:53:47 +00:00
Bart Van Assche
a7b7c152f5 Merge branch 'svn-trunk' 2017-12-28 10:47:32 -08:00
Bart Van Assche
8268f5d5b1 Convert setup_timer() into timer_setup() calls
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7294 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-12-28 18:44:21 +00:00
Bart Van Assche
e57717b11d Merge branch 'svn-trunk' 2017-12-22 18:35:53 -08:00
Bart Van Assche
ff77f1acf4 Move WARN() backport from srpt/src/ib_srpt.c to scst/include/backport.h
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7280 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-12-22 23:13:30 +00:00
Bart Van Assche
1c9ec1c42d Merge branch 'svn-trunk' 2017-11-14 18:40:50 -08:00
Bart Van Assche
8c92d5c168 scst: Fix kernel <= 2.6.30 build
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7268 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-11-14 16:37:24 +00:00
Bart Van Assche
c924270d06 Merge branch 'svn-trunk' 2017-11-13 18:05:49 -08:00
Bart Van Assche
089f839a78 scst: Address two checkpatch warnings
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7264 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-11-13 16:47:10 +00:00
Bart Van Assche
f8fab6fcab scst: Fix build for kernels 3.15 and older
blk_rq_set_block_pc() was introduced in kernel 3.16.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7262 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-11-13 16:18:00 +00:00
Bart Van Assche
e02cddfde8 Merge branch 'svn-trunk' 2017-11-12 21:50:50 -08:00
Bart Van Assche
4c05086b59 scst, iscsi-scst: Introduce scst_read(), scst_write(), scst_readv() and scst_writev()
This makes it easier to add support for new kernel versions, e.g. kernel
version v4.14.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7260 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-11-13 05:50:44 +00:00
Bart Van Assche
64c76f339c scst: Introduce the kernel v4.14 bio_set_dev() macro
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7259 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-11-13 05:49:08 +00:00
Bart Van Assche
2868e67e3b Merge branch 'svn-trunk' 2017-10-09 20:19:56 -07:00
Bart Van Assche
ebbb2f39b1 scst/include/backport.h: Follow-up for r7248
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7250 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-09 19:58:15 +00:00
Bart Van Assche
16fe64bc13 scst_vdisk: Fix a bug in the Linux kernel v4.13 port
See also trunk r7240.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7248 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-09 18:10:48 +00:00
Bart Van Assche
5a570fa8e7 Merge branch 'svn-trunk' 2017-10-05 19:08:53 -07:00
Bart Van Assche
d3a4f1d79f scst: Port to openSUSE Leap 42.x
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7242 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-05 16:57:27 +00:00
Bart Van Assche
5b40d7390f Merge branch 'svn-trunk' 2017-10-03 18:04:07 -07:00
Bart Van Assche
c0419026e3 scst: Port to kernel v4.13
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7240 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-03 23:08:29 +00:00
Bart Van Assche
60c84eff7a Merge branch 'svn-trunk' 2017-09-01 07:19:45 -07:00
Vladislav Bolkhovitin
d0c448116a Change version to 3.4
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7230 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-09-01 04:04:00 +00:00
Bart Van Assche
c78808d991 Merge branch 'svn-trunk' 2017-07-25 20:58:13 -07:00
Vladislav Bolkhovitin
4c269fa728 In the current implementation of SCST/trunk the recently introduced
"active" attribute for vdisk_blockio devices is managed by an ALUA
state change (start/finish), for specific ALUA states (eg,
active/standby). Relying on ALUA state changes to open/close the
back-end block device does indeed work for some SCST configurations,
however, some users desire advanced control over this setting, and
prefer to handle opening/closing a back-end block device from the
cluster resource agent (RA) script. Certain ambiguous situations can
also arise if more than one target group exists per SCST device
group... in this case, a back-end device may flip/flop (opened/closed)
and may end up in an inconsistent state if care is not taken in the
implementation of the cluster RA.

The patch below makes the "active" sysfs attribute for vdisk_blockio
readable/writable by a user, thereby giving full control over a
device's opened/closed state. The default behavior for SCST
vdisk_blockio devices is to allow ALUA state changes to control the
opened/closed ("active") state of a back-end device
(bind_alua_state=1). If the user wishes to handle setting the "active"
attribute themselves via a script or cluster RA, they would set
bind_alua_state=0 for the vdisk_blockio device, and the "active"
attribute would not be modified on ALUA state changes, it is then left
up to the user to handle this.

The patch below also fixes a bug where the attribute value is not
changed when the appropriate ALUA state is set, unless a target
session exists for the target group target; see here for more
information: https://sourceforge.net/p/scst/mailman/message/35898014/

Signed-off-by: Marc A. Smith <marc.smith@parodyne.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7212 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-07-26 03:18:30 +00:00
Bart Van Assche
35e1013375 Merge branch 'svn-trunk' 2017-06-17 18:59:32 -07:00
Vladislav Bolkhovitin
c967700cd7 scst: Linux kernel v4.12 warning fix.
Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7208 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-06-13 03:58:26 +00:00
Bart Van Assche
3041f41330 Merge branch 'svn-trunk' 2017-06-09 20:22:34 -07:00