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
feb3bd8b5f
scst: Fix source code indentation
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7308 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-12-30 03:36:39 +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
509517d83e
Merge branch 'svn-trunk'
2017-12-29 14:43:20 -08:00
Bart Van Assche
41d6ad1c78
scst: Kernel v4.15 build fix
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7299 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-12-29 22:39:16 +00:00
Bart Van Assche
9246a05f7e
Fix kernel-doc warnings
...
Avoid that building SCST with W=1 against kernel v4.15 triggers warnings about
kernel-doc header issues.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7298 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-12-29 22:34:17 +00:00
Bart Van Assche
a7b7c152f5
Merge branch 'svn-trunk'
2017-12-28 10:47:32 -08:00
Bart Van Assche
66adc2ce3f
scst_vdisk: Change page_cache_alloc_cold() calls into page_cache_alloc() calls
...
See also commit 453f85d43fa9 ("mm: remove __GFP_COLD").
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7295 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-12-28 18:45:20 +00: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
b786e5f954
scst: Convert init_timer() into setup_timer() calls
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7291 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-12-28 18:42:42 +00:00
Bart Van Assche
50cd6f234a
Merge branch 'svn-trunk'
2017-12-22 20:26:13 -08:00
Vladislav Bolkhovitin
805e3ffeb7
scst: fix pass-through on kernels 4.11 and 4.12
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7287 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-12-23 04:03:09 +00:00
Bart Van Assche
e57717b11d
Merge branch 'svn-trunk'
2017-12-22 18:35:53 -08:00
Vladislav Bolkhovitin
a4421e4d8b
scst: nolockdep patch for 4.13 kernels
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7286 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-12-23 02:19:31 +00: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
e5a3e25588
scst/src/scst_targ: Use READ_ONCE() instead of ACCESS_ONCE()
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7265 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-11-13 16:47:43 +00: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
1190cf1ea1
scst/src/scst_lib.c: Fix recently introduced checkpatch complaints
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7261 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-11-13 16:00:09 +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
bebf54b819
Merge branch 'svn-trunk'
2017-10-11 20:38:52 -07:00
Vladislav Bolkhovitin
ea826a80d8
scst: add example of active non-optimized setup
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7253 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-12 03:22:02 +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
47b7da25aa
scst: Fix SCSI pass-through for kernel version v4.11 and later
...
See also trunk r7153.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7249 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-09 18:15:00 +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
8b9d2a64fe
scst/src/scst_lib.c: Port to Linux kernel v4.12
2017-08-27 09:06:47 -07:00
Bart Van Assche
fdb5124c44
Merge branch 'svn-trunk'
2017-08-27 08:45:16 -07:00
Bart Van Assche
617c48e138
scst: More fall-through annotations for gcc 7
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7217 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-08-27 15:40:42 +00:00
Bart Van Assche
9e35afe1e0
Annotate fall-through in switch statements in a form recognized by gcc 7
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7216 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-08-27 15:28:57 +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
54a3d58a9e
Merge branch 'svn-trunk'
2017-07-15 20:16:02 -07:00
Vladislav Bolkhovitin
792a896abb
With the new 'active' attribute, a bug exists where the attribute
...
value is not changed when the appropriate ALUA state is set, unless a
target session exists for the target group target; this patch fixes
that bug, 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@7211 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-07-15 03:26:11 +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
Vladislav Bolkhovitin
213a11e07b
scst: minor cleanup for previous commit
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7207 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-06-07 01:23:59 +00:00