Israel Rukshin
32ca0a7846
isert: fix a possible extra refcount put of isert connection
...
On login logout stress we can start a teardown flow before connection is
fully established.
In this case we have one less refcount on isert connection.
Signed-off-by: Israel Rukshin <israelr@mellanox.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6937 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-17 07:27:15 +00:00
Israel Rukshin
a3b45f61bf
isert: add assertions for connection teardwon flow
...
Signed-off-by: Israel Rukshin <israelr@mellanox.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6936 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-17 07:27:11 +00:00
Israel Rukshin
c3827a6f54
isert: fix cleaning isert_con_dev
...
Clean pointers not to point to invalid memory.
- While conn is released set conn_dev->conn to null as conn is invalid now.
- While conn_dev is released set priv(conn) to null as conn_dev is invalid now.
Signed-off-by: Israel Rukshin <israelr@mellanox.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6935 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-17 07:27:06 +00:00
Israel Rukshin
583f452957
isert: make sure rdma_disconnect is called only once
...
Signed-off-by: Israel Rukshin <israelr@mellanox.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6934 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-17 07:17:37 +00:00
Bart Van Assche
3c66e5bf82
scst/README.dlm: Correct instructions for waiting for logout
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6933 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-11 18:36:48 +00:00
Bart Van Assche
2470aa6564
Merge branch 'svn-trunk'
2016-08-09 18:11:33 -07:00
Bart Van Assche
6dd5fbfa27
srpt/Testing.txt: Leave out --norandommap
...
--verify and --norandommap are mutually exclusive. Hence leave out
--norandommap.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6932 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-09 20:18:03 +00:00
Bart Van Assche
4f776f42bb
scst/README.dlm: Update startup sequence information
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6931 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-08 20:52:00 +00:00
Bart Van Assche
d31a6e6bf4
iscsi-scst: Port to kernel v4.7
2016-08-07 07:54:52 -07:00
Bart Van Assche
5aa14d91b0
scst_vdisk: Comment out an unused variable
2016-08-07 07:53:56 -07:00
Bart Van Assche
266c8381b8
scst: Suppress compiler warnings about IS_ERR_VALUE() for kernel v4.7
2016-08-07 07:53:34 -07:00
Bart Van Assche
eafdd34283
scst.spec.in: Remove %dir /lib/modules/%{kversion}/extra
...
This avoids that the SCST RPM conflicts with other kernel RPMs
that install kernel modules in the "extra" directory. Reported
and suggested by Consus <consus@gmx.com >.
2016-08-07 07:49:44 -07:00
Bart Van Assche
1e468b0a5b
Merge branch 'svn-trunk'
2016-08-02 20:29:39 -07:00
Vladislav Bolkhovitin
ce52affcdf
scst_vdisk: don't report unmap alignment, if it is equal to unmap granularity
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6930 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-03 02:49:31 +00:00
Vladislav Bolkhovitin
830fe47378
Update SVN_TAGS
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6928 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-03 02:33:56 +00:00
Vladislav Bolkhovitin
69863eb497
Increase version to 3.3
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6927 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-03 02:32:17 +00:00
Vladislav Bolkhovitin
f125a4e9bf
scst: Update README.dlm
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6921 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-03 01:43:24 +00:00
Bart Van Assche
a5f67cd1f2
scst_dlm: Instantiate lockspace as soon as cluster mode is enabled
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6920 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-02 16:31:00 +00:00
Bart Van Assche
097b7127d5
Merge branch 'svn-trunk'
2016-07-26 17:55:53 -07:00
Bart Van Assche
d41a3a3cc9
/etc/init.d/scst: Make this script work on recent versions of Ubuntu Linux
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6919 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-07-26 17:26:17 +00:00
Bart Van Assche
8d7179bcac
Merge branch 'svn-trunk'
2016-07-25 19:58:28 -07:00
Vladislav Bolkhovitin
cde21c669a
scst: small post-r6913 cleanup
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6918 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-07-26 02:04:34 +00:00
Vladislav Bolkhovitin
244271120e
iscsi-scst: increase past CmdSN window to 2048
...
On modern storage there might be more, than 128, commands queued, so
previous CmdSN window might be too small and on unstable networks lead
to infinite retries. For more infor see thread
https://sourceforge.net/p/scst/mailman/message/35238904 .
Reported-By: Lev Vainblat <lev@zadarastorage.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6917 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-07-26 01:42:26 +00:00
Bart Van Assche
1a24483678
scst.h: Move more code to <scst/backport.h>
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6916 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-07-25 21:16:49 +00:00
Bart Van Assche
0a3d69c31b
scst_vdisk: Fix spelling of "reopening"
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6915 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-07-25 17:03:06 +00:00
Bart Van Assche
ae8b1f84aa
Merge branch 'svn-trunk'
2016-07-22 18:10:48 -07:00
Bart Van Assche
18ccf50b87
scst_pres: Save APTPL PR info on both nodes
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6914 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-07-22 16:51:07 +00:00
Bart Van Assche
e2b03a7836
scst_pres: Modify scst_pr_sync_device_file() function prototype
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6913 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-07-22 16:50:31 +00:00
Bart Van Assche
17f49dbede
scst_dlm: Initialize reg->dlm_idx for PR information loaded from disk
...
This patch avoids that the following kernel warning appears while
starting SCST after having loaded APTPL PR information:
WARNING: scst/src/scst_dlm.c:461 scst_copy_to_dlm()
Reported-by: <consus@gmx.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6912 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-07-22 16:48:38 +00:00
Bart Van Assche
7ae96e8612
Merge branch 'svn-trunk'
2016-07-15 11:50:00 -07:00
Vladislav Bolkhovitin
ff3b499a4c
scst: fix perf build
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6911 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-07-15 01:23:38 +00:00
Vladislav Bolkhovitin
f2da0cec29
README.dlm: update ToDo to reflect recently discovered APTL issue
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6910 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-07-14 01:33:20 +00:00
Vladislav Bolkhovitin
aea4052085
README.dlm update to refer to LVB truncation prevention patch
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6909 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-07-13 23:24:41 +00:00
Vladislav Bolkhovitin
0c2fd8e564
iscsi-scst: handle a case in target_del() where the target was already freed
...
target_del() calls handle_iscsi_events() which may recursively call target_del().
The 1st target_del() may resume its execution after the target object was already freed.
Signed-off-by: Erez Zilber <erezzi.list@gmail.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6908 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-07-02 01:42:49 +00:00
Vladislav Bolkhovitin
aa18a4bcb5
Logginf cleanup
...
1. Make PR logging available in the release mode
2. Make /sys/kernel/scst_tgt/trace_level reflect currently available logging
3. Cleanup unused log levels from /sys/kernel/scst_tgt/trace_level
Suggested-by: Consus <consus@gmx.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6907 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-07-02 01:40:48 +00:00
Vladislav Bolkhovitin
55bb0206cd
scst: when checking the status of the service, also check if all daemons are running
...
Signed-off-by: Erez Zilber <erezzi.list@gmail.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6906 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-06-30 04:10:38 +00:00
Vladislav Bolkhovitin
4092e26bba
scst: fix possible error path crash in debug mode
...
It could happen, if a non-pass-through dev handler erroneously returned
SCST_EXEC_NOT_COMPLETED and TRAGE_DBG() statements enabled in debug mode.
Reported-by: Jeff Goldszer <jeff.goldszer@alebra.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6905 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-06-30 04:05:14 +00:00
Vladislav Bolkhovitin
528f5e0004
Makefiles/Kconfigs for kernels 4.5 and 4.6
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6904 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-06-25 00:56:09 +00:00
Vladislav Bolkhovitin
d4e2c4b12e
We found this bug when we add ZFS zvol to vdisk_blockio, remove it from copy
...
manager, and change ALUA state. After that the zvol would be in constant busy
state, even if we remove all scst modules.
The problem is that blockio_on_alua_state_change_finish will unconditionally
vdisk_open_fd. But for the above mentioned case, tgt_dev_cnt will be zero, so
the fd is permanently leaked. We fix this by only do vdisk_open_fd when
tgt_dev_cnt is not zero.
Signed-off-by: Chunwei Chen <david.chen@osnexus.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6902 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-06-22 02:02:41 +00:00
Bart Van Assche
d10595a547
Merge branch 'svn-trunk'
2016-06-09 19:15:46 -07:00
Bart Van Assche
e7603fc7a7
ib_srpt: Start with comp_vector 0
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6901 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-06-09 22:18:10 +00:00
Bart Van Assche
da83a4a9a4
ib_srpt: Serialize sport->port_id accesses
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6900 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-06-09 21:39:45 +00:00
Bart Van Assche
0d3c65105a
ib_srpt: Remove a duplicate comment
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6899 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-06-09 21:39:15 +00:00
Bart Van Assche
a6f0551eef
ib_srpt: Introduce srpt_init_sport()
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6898 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-06-09 21:14:29 +00:00
Bart Van Assche
1b8ba2f3cb
ib_srpt: Add link_layer and port_id sysfs attributes
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6897 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-06-09 21:03:34 +00:00
Bart Van Assche
0556c29fdd
ib_srpt: Port to Linux kernel v4.7
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6896 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-06-08 21:19:24 +00:00
Vladislav Bolkhovitin
353d1f1928
scst: update README how to configure SCST, so VMware start using EXTENDED COPY between datastores
...
Based on information from Artur Piechocki <artur.piechocki@open-e.com >
Tested-By: Isaac Goldbaum <isaac.goldbaum@mail.ru >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6892 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-05-27 01:02:11 +00:00
Bart Van Assche
e7b04f550e
Merge branch 'svn-trunk'
2016-05-24 21:37:23 -07:00
Bart Van Assche
d15d5773a7
scst, iscsi-scst, scstadmin: Spell successful and unsuccessful correctly
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6891 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-05-07 04:30:46 +00:00
Vladislav Bolkhovitin
186369a472
scst: add possibility of polling + few minor doc cleanups
...
See README diff for more details
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6890 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-05-07 00:49:43 +00:00