svn+ssh://svn.code.sf.net/p/scst/svn/trunk
........
r6821 | vlnb | 2016-03-01 20:13:42 -0800 (Tue, 01 Mar 2016) | 8 lines
iscsi-scst: fix possible recursive locking
cmnd_done() called from cmnd_put() can take cmd_list_lock, so it must
not be called under it.
Reported and tested by David Chen <david.chen@osnexus.com>
........
r6824 | bvassche | 2016-03-08 10:24:23 -0800 (Tue, 08 Mar 2016) | 8 lines
scst_vdisk: Fix kfree() argument in vdev_size_store() error path
The wrong variable is freed in the vdev_size_store() error path.
Pass 'new_size' instead of 'buf' to kfree().
Signed-off-by: Sebastian Parschauer <sebastian.riemer@profitbricks.com>
[ bvanassche: edited patch description ]
........
r6825 | vlnb | 2016-03-09 21:00:01 -0800 (Wed, 09 Mar 2016) | 6 lines
qla2x00t: decrease severity of 2 log messages
Those messages don't necessare mean any error. Some harmless race
conditions between the target driver and FW can lead to them as well.
........
r6827 | vlnb | 2016-03-10 19:10:04 -0800 (Thu, 10 Mar 2016) | 8 lines
This limits target group state changes to only apply to targets local to the host.
This prevents the devices being blocked offline by changes to non-local targets.
Signed-off-by: Adrian Saul <adrian.saul@tpgtelecom.com.au>
with some minor corrections
........
r6828 | vlnb | 2016-03-10 19:27:53 -0800 (Thu, 10 Mar 2016) | 3 lines
scst_vdisk: warning clarification
........
r6835 | bvassche | 2016-03-23 21:08:12 -0700 (Wed, 23 Mar 2016) | 2 lines
scst: Port to Linux kernel v4.6
........
r6858 | bvassche | 2016-04-11 12:59:59 -0700 (Mon, 11 Apr 2016) | 5 lines
scst: Kernel v4.6-rc3 build fix
See also patch "mm: drop PAGE_CACHE_* and page_cache_{get,release}
definition".
........
r6863 | vlnb | 2016-04-19 21:00:00 -0700 (Tue, 19 Apr 2016) | 3 lines
scst_user: improve backward compatibility with handlers relying on obsolete SCST_USER_UNREGISTER_DEVICE call
........
r6865 | vlnb | 2016-04-19 21:29:34 -0700 (Tue, 19 Apr 2016) | 3 lines
scst: decrease severity of "Copy Manager already registered" message, because it is harmless
........
r6866 | vlnb | 2016-04-19 21:34:43 -0700 (Tue, 19 Apr 2016) | 3 lines
Follow-up for the previous commit
........
r6867 | vlnb | 2016-04-19 21:52:58 -0700 (Tue, 19 Apr 2016) | 5 lines
scstadmin: prevent saving statistical dif_checks_failed attribute
From Marc Smith <marc.smith@mcc.edu>
........
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.1.x@6869 d57e44dd-8a1f-0410-8b47-8ef2f437770f
svn://svn.code.sf.net/p/scst/svn/trunk
........
r6693 | vlnb | 2015-11-17 19:59:30 -0800 (Tue, 17 Nov 2015) | 5 lines
scst: Add user space control for suspend/resume activities
Useful to speed up mass management
........
r6694 | vlnb | 2015-11-17 20:09:50 -0800 (Tue, 17 Nov 2015) | 6 lines
scst: Rework Copy Manager's sysfs interface
The old version had management incompatible with scstadmin and had
issues with LUNs management.
........
r6695 | bvassche | 2015-11-18 11:36:01 -0800 (Wed, 18 Nov 2015) | 8 lines
scst: Make it easier to build without DLM support
With this change all that is required to build without DLM support
is to add the following in scst_priv.h:
#undef CONFIG_DLM
#undef CONFIG_DLM_MODULE
........
r6696 | bvassche | 2015-11-18 14:10:03 -0800 (Wed, 18 Nov 2015) | 2 lines
scst_pres: Suppress a compiler warning when building against a kernel with no DLM support
........
r6697 | bvassche | 2015-11-18 14:10:33 -0800 (Wed, 18 Nov 2015) | 1 line
scst_vdisk: Kernel v4.4 build fix
........
r6698 | bvassche | 2015-11-18 14:10:54 -0800 (Wed, 18 Nov 2015) | 1 line
ib_srpt: Kernel v4.4 build fix
........
r6699 | bvassche | 2015-11-18 14:11:37 -0800 (Wed, 18 Nov 2015) | 1 line
isert-scst: Port to Linux kernel v4.4
........
r6700 | bvassche | 2015-11-18 14:44:29 -0800 (Wed, 18 Nov 2015) | 1 line
scst: Do not build cluster PR support if CONFIG_SCST_NO_DLM has been set
........
r6701 | vlnb | 2015-11-18 21:20:43 -0800 (Wed, 18 Nov 2015) | 3 lines
scst: fix explicit ALUA disabled DIF type 2 handling
........
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.1.x@6702 d57e44dd-8a1f-0410-8b47-8ef2f437770f
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
On scst teardown we call rdma_disconnect() on all connections.
this moves the qps to error state and flushes all the wc, including
the drain wc which will results in kref_put of the connection.
In a race condition with the connection request, we might be only in
the init stage of the ref, and calling kref_put will result in refcount
0 and freeing the connection while establishing it.
Call the first kref_get before rdma_accept() to prevent this race.
Signed-off-by: Ariel Nahum <arieln@mellanox.com>
Signed-off-by: Yan Burman <yanb@mellanox.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6486 d57e44dd-8a1f-0410-8b47-8ef2f437770f
The second TM request can come while the old one, response for which is
going to be delayed, is still being processed, hence no response
prepared yet, so the delayed response should be dropped on the stage of
the new response preparing. Otherwise in this place the old delayed
response will trigger BUG_ON().
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6456 d57e44dd-8a1f-0410-8b47-8ef2f437770f
We were submitting work requests sometimes after the drain_wr,
so we would try to process flushes on something that is already
destroyed. This can be seen with very high login/logout load.
Signed-off-by: Yan Burman <yanb@mellanox.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6428 d57e44dd-8a1f-0410-8b47-8ef2f437770f
In order to be able to support large block sizes (larger than 512K),
we allocate required structured in a lazy fashion. This way we both support
large block sizes (over 512K and even over 1M). We also lower memory footprint
when smaller block sizes are used.
Signed-off-by: Yan Burman <yanb@mellanox.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6418 d57e44dd-8a1f-0410-8b47-8ef2f437770f
Preprocessor directives are not allowed in argument lists of a macro.
This patch reverts r6317.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6393 d57e44dd-8a1f-0410-8b47-8ef2f437770f
The put_page_callback patch only improves performance on single
socket systems but not on systems with multiple CPU sockets.
Since this message is confusing to SCST users, do not print a
warning if the put_page_callback patch has not been applied.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6340 d57e44dd-8a1f-0410-8b47-8ef2f437770f
It is annoying that some warnings are only reported in release mode.
Modify scst_debug.h such that the compiler does not report variables
that are only used in debug builds as unused.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6315 d57e44dd-8a1f-0410-8b47-8ef2f437770f
Avoid that the compiler complains that the variable 'pad_bytes'
is not used with CONFIG_LIBCRC32C=n.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6314 d57e44dd-8a1f-0410-8b47-8ef2f437770f