Bart Van Assche
e4fccdcc13
scst_lib: Remove space before closing parenthesis
...
Detected by checkpatch.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6603 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 18:16:04 +00:00
Bart Van Assche
e556a79e3d
scst_vdisk: Do not initialize static variables to zero
...
Detected by checkpatch.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6602 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 18:14:54 +00:00
Bart Van Assche
5dd3194e66
scst_user: Avoid leaking kernel data to user space
...
There is a hole in struct scst_user_opt so that structure must be
zero-initialized to avoid leaking kernel data to user space.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6601 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 18:04:49 +00:00
Bart Van Assche
5d73f89bb0
isert-scst: Remove unreachable code
...
Code after BUG() is unreachable both with CONFIG_BUG=y and with
CONFIG_BUG=n. Hence remove such code. Detected by smatch.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6600 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 18:03:36 +00:00
Bart Van Assche
40db391c12
scst_event: Avoid that payload lengths above 0x80000000 cause trouble (detected by smatch)
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6599 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 17:54:00 +00:00
Bart Van Assche
b6440a0d3b
scst_tg: Suppress a smatch complaint
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6598 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 17:48:37 +00:00
Bart Van Assche
d9bd3f56cf
scst_lib: Fix return type of __scst_adjust_sg_get_tail()
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6597 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 17:46:28 +00:00
Bart Van Assche
c5aa1ce1e0
scst_dlm: Add __printf attribute to create_st_wq()
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6596 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 17:37:13 +00:00
Bart Van Assche
f38dbc2dff
scst_dlm: Build fix for older kernels (2.6.32)
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6595 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 17:36:46 +00:00
Vladislav Bolkhovitin
db608b6075
Web updates
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6594 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 06:48:01 +00:00
Vladislav Bolkhovitin
5f7ac7f4bf
Version updated to 3.2.0
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6593 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 06:17:17 +00:00
Vladislav Bolkhovitin
e00b83998f
VAAI docs
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6590 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 04:01:29 +00:00
Vladislav Bolkhovitin
3fc775c75a
EXTENDED COPY support
...
Prepared with help from Sushma Gurram <Sushma.Gurram@sandisk.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6589 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:58:00 +00:00
Vladislav Bolkhovitin
54cf21076a
New COMPARE AND WRITE implementation
...
Prepared with help from Sushma Gurram <Sushma.Gurram@sandisk.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6588 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:56:48 +00:00
Vladislav Bolkhovitin
aff6012d44
Remove old COMPARE AND WRITE implementation
...
Prepared with help from Sushma Gurram <Sushma.Gurram@sandisk.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6587 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:55:35 +00:00
Vladislav Bolkhovitin
daee4dcb7e
WRITE SAME command improvements
...
Prepared with help from Sushma Gurram <Sushma.Gurram@sandisk.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6586 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:54:23 +00:00
Vladislav Bolkhovitin
2b202209ca
ALUA DRBD compatibility
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6585 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:52:52 +00:00
Vladislav Bolkhovitin
ecbe9d17a1
Serialize STPG commands
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6584 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:51:35 +00:00
Vladislav Bolkhovitin
55c46e4106
Delay SCSI commands in TRANSITIONING ALUA state to ease initiators load
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6583 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:50:37 +00:00
Vladislav Bolkhovitin
3636664071
Various SCST events producers
...
Prepared with help from Prasidh Srikanth <Prasidh.Srikanth@sandisk.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6582 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:49:14 +00:00
Vladislav Bolkhovitin
c619567bba
SCST events sample user space consumer
...
Prepared with help from Prasidh Srikanth <Prasidh.Srikanth@sandisk.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6581 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:48:24 +00:00
Vladislav Bolkhovitin
a2556e2e01
svn:ignore added
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6580 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:45:10 +00:00
Vladislav Bolkhovitin
ae38d284e0
Explicit ALUA user space
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6579 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:40:37 +00:00
Vladislav Bolkhovitin
2ecfcdc643
Improve logging
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6578 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:35:50 +00:00
Vladislav Bolkhovitin
9ce3d2989a
Missed piece from the previous commit
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6577 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:31:04 +00:00
Vladislav Bolkhovitin
e50f240d33
Explicit ALUA support
...
Prepared with help from Prasidh Srikanth <Prasidh.Srikanth@sandisk.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6576 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:28:53 +00:00
Vladislav Bolkhovitin
2fdbaf0fae
Devices external blocking support
...
Prepared with help from Prasidh Srikanth <Prasidh.Srikanth@sandisk.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6575 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:27:39 +00:00
Vladislav Bolkhovitin
297d268a7a
SCST events infrastructure
...
Prepared with help from Prasidh Srikanth <Prasidh.Srikanth@sandisk.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6574 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:26:01 +00:00
Vladislav Bolkhovitin
9d61dc4b03
Cluster SCSI state sync support
...
From Bart Van Assche <Bart.VanAssche@sandisk.com >
Prepared with help from Pralay Dakua <Pralay.Dakua@sandisk.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6573 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:23:46 +00:00
Vladislav Bolkhovitin
5058156b26
Cleanups
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6572 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-05 04:03:20 +00:00
Bart Van Assche
87c1d45bf8
scst_targ: Report unsupported SELECT REPORT values with 0x prefix
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6571 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-03 16:52:00 +00:00
Bart Van Assche
77baa86e0e
qla2x00t: Source code comment spelling fix
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6570 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-03 05:25:32 +00:00
Bart Van Assche
fc27595d07
nightly build: Add support files for kernel v4.3
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6569 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-03 05:24:37 +00:00
Bart Van Assche
75499d9cdb
nightly build: Add kernel version 4.3
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6568 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-03 05:18:45 +00:00
Bart Van Assche
711e3c54a5
ib_srpt: Remove one_target_per_port parameter completely
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6567 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-02 22:44:48 +00:00
Bart Van Assche
a8ecf61074
isert: Rename a function
...
Signed-off-by: Ariel Nahum <arieln@mellanox.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6566 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-29 15:57:32 +00:00
Bart Van Assche
f7c023f3ef
scst/README*: Remove trailing whitespace
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6565 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 22:02:42 +00:00
Bart Van Assche
6fff27d6d8
nightly build: Update kernel versions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6564 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 21:18:00 +00:00
Bart Van Assche
0a2cdd1f64
iscsi-scst/kernel/Makefile.in-kernel: Sort file names alphabetically
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6563 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 21:11:06 +00:00
Bart Van Assche
64984b964c
scstadmin.spec: procfs build fix
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6562 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 21:09:11 +00:00
Bart Van Assche
4a3ba74b67
scst_local, procfs: Kernel v4.3 build fix.
...
See also patch "fs/seq_file: convert int seq_vprint/seq_printf/etc...
returns to void" (commit ID 6798a8caaf64fa68b9ab2044e070fe4545034e03).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6561 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 20:39:04 +00:00
Bart Van Assche
b5c5a3eb7e
scst_vdisk: procfs build fix
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6560 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 20:29:18 +00:00
Bart Van Assche
4938861aa2
scst: Move backports from scst.h to backport.h - step 2
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6559 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 20:22:57 +00:00
Bart Van Assche
4f4edc3f6f
scst: Move backports from scst.h to backport.h - step 1
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6558 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 19:00:05 +00:00
Bart Van Assche
c8b2fd0808
scst.spec: Use QLogic target driver source code from the QLogic git tree if available
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6557 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 18:10:19 +00:00
Bart Van Assche
dad9e0317c
list-source-files: Fix the behavior for processing soft links
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6556 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 18:09:04 +00:00
Bart Van Assche
1e9ec5d21a
scst/include/backport.h: Install this header and include it in the RPM
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6555 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 17:24:23 +00:00
Bart Van Assche
46202aa823
isert: Fix null dereference in isert_cmnd allocation code
...
In a state where the list isert_conn->tx_free_list is empty
(mostly under traffic), we might fail to receive a command from
the isert command pool. This will result in later null deref.
In this case, busy-wait until a command will be available (will
be freed by the receive context).
[2158233.952087] BUG: unable to handle kernel NULL pointer dereference at (null)
[2158233.956023] IP: [<ffffffffa04e14d0>] isert_pdu_send+0xc0/0x1f0 [isert_scst]
....
[2158233.956023] [<ffffffffa04d98c8>] ? isert_cmnd_alloc+0x78/0x110 [isert_scst]
[2158233.956023] [<ffffffffa045b5a0>] req_cmnd_release+0x50/0x130 [iscsi_scst]
[2158233.956023] [<ffffffffa04622cb>] iscsi_send_nop_in+0x19b/0x370 [iscsi_scst]
Signed-off-by: Ariel Nahum <arieln@mellanox.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6554 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 16:55:48 +00:00
Bart Van Assche
64737849f8
nightly build: Update kernel versions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6551 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-23 05:47:49 +00:00
Bart Van Assche
8ae47bccef
scstadmin: Micro-optimize driverExists()
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6550 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-20 18:17:08 +00:00