Bart Van Assche
d13b730d6d
ib_srpt: Improve robustness of "make clean"
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6725 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-11 01:38:46 +00:00
Bart Van Assche
08b774f643
scst_main: Fix wait_event() call in scst_unregister_target()
...
Avoid that the following kernel warning gets triggered:
WARNING: CPU: 3 PID: 12967 at kernel/sched/core.c:7287 __might_sleep+0x7a/0x90()
do not call blocking ops when !TASK_RUNNING; state=2 set at [<ffffffff81097cfe>] prepare_to_wait_event+0x5e/0xf0
CPU: 3 PID: 12967 Comm: scst_uid Tainted: G O 4.0.0-debug+ #1
Call Trace:
[<ffffffff815f11cb>] dump_stack+0x4c/0x65
[<ffffffff81053930>] warn_slowpath_common+0x80/0xc0
[<ffffffff810539b1>] warn_slowpath_fmt+0x41/0x50
[<ffffffff81079c1a>] __might_sleep+0x7a/0x90
[<ffffffff815f5d4a>] mutex_lock_nested+0x2a/0x4d0
[<ffffffffa035330a>] test_sess_list+0x1a/0x40 [scst]
[<ffffffffa0355b1e>] scst_unregister_target+0x26e/0x380 [scst]
[<ffffffffa01f6c86>] __scst_local_remove_target+0xc6/0x160 [scst_local]
[<ffffffffa01f6ddc>] scst_local_sysfs_del_target+0xbc/0x1b0 [scst_local]
[<ffffffffa038b315>] scst_process_tgtt_mgmt_store+0x205/0x300 [scst]
[<ffffffffa038b424>] scst_tgtt_mgmt_store_work_fn+0x14/0x20 [scst]
[<ffffffffa038cc1d>] scst_process_sysfs_works+0xbd/0x1f0 [scst]
[<ffffffffa038ce0d>] sysfs_work_thread_fn+0xbd/0x310 [scst]
[<ffffffff81073d33>] kthread+0xf3/0x110
[<ffffffff815faf18>] ret_from_fork+0x58/0x90
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6724 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-09 19:18:01 +00:00
Vladislav Bolkhovitin
82d831be80
scst_event: fix forgotten corner case module_put
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6723 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-08 04:16:01 +00:00
Vladislav Bolkhovitin
a195aee513
Cleanup
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6721 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-08 03:51:01 +00:00
Vladislav Bolkhovitin
0b8cb936d3
docs: fix (extra)clean brocken by r6716
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6720 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-08 03:44:51 +00:00
Bart Van Assche
d31e5bd373
nightly build: Update kernel versions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6718 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-04 00:31:40 +00:00
Bart Van Assche
ad812fedb6
scstadmin: Ensure that -no_lip takes effect for all SCST configuration commands
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6717 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-02 22:59:33 +00:00
Bart Van Assche
edfd19ee7e
scst: Rename the PR-sync document to avoid filenames with spaces in the SCST tree
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6716 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-02 16:57:45 +00:00
Bart Van Assche
3136f99a86
scst-const.h: Follow-up for r6714
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6715 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-28 04:39:57 +00:00
Bart Van Assche
c86027404a
usr/fileio: Build fix for Ubuntu 15.10
...
Ubuntu 15.10 includes Linux kernel 4.2 but does not define
SERVICE_ACTION_IN_16 in the <scsi/scsi.h> glibc header. Hence
provide a definition in scst_const.h.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6714 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-25 17:28:02 +00:00
Bart Van Assche
3353e47e28
scstadmin: Make regression test 6 pass
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6713 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-23 23:05:24 +00:00
Bart Van Assche
949aa31053
scstadmin: Improve copy manager support further
...
Also restore pass-through LUNs
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6712 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-23 23:04:57 +00:00
Bart Van Assche
3047ca75fd
mpt: Include header file mptbase.h without path
...
Allow include path modification with LSI_INC_DIR.
Signed-off-by: Sebastian Herbszt <herbszt@gmx.de >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6711 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-22 20:03:29 +00:00
Bart Van Assche
d6b116c46d
qla2x00t: Fix a few typos
...
Signed-off-by: Sebastian Herbszt <herbszt@gmx.de >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6710 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-22 19:49:18 +00:00
Bart Van Assche
0f3bcea86d
scstadmin: Improve copy manager support
...
Add support for saving and restoring copy manager attributes.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6709 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-21 00:19:04 +00:00
Bart Van Assche
2f455b29d1
/etc/init.d/scst: Suppress rmmod error messages
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6708 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-20 23:23:48 +00:00
Bart Van Assche
ce479e0b01
scst_local: Linux kernel v4.4 build fix
...
Signed-off-by: Sebastian Herbszt <herbszt@gmx.de >
[ bvanassche: Merged the two #if-statements into a single #if-statement ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6707 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-20 21:47:57 +00:00
Bart Van Assche
82564f30ab
scst: More procfs build fixes. See also r6694.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6706 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-19 17:48:18 +00:00
Bart Van Assche
c07e1ef0ef
scst: Fix procfs build
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6705 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-19 17:31:02 +00:00
Bart Van Assche
a2d86af17f
scripts/run-regression-tests: Also test no-DLM build
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6704 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-19 17:30:24 +00:00
Bart Van Assche
c2283e4271
scst_sysfs: Introduce scst_parse_add_repl_param()
...
This makes the __scst_process_luns_mgmt_store() source code slightly
easier to read.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6703 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-19 16:53:18 +00:00
Vladislav Bolkhovitin
f5d73fa9ed
scst: fix explicit ALUA disabled DIF type 2 handling
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6701 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-19 05:20:43 +00:00
Bart Van Assche
032f4fd733
scst: Do not build cluster PR support if CONFIG_SCST_NO_DLM has been set
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6700 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-18 22:44:29 +00:00
Bart Van Assche
87347442fd
isert-scst: Port to Linux kernel v4.4
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6699 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-18 22:11:37 +00:00
Bart Van Assche
098f6bd1c5
ib_srpt: Kernel v4.4 build fix
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6698 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-18 22:10:54 +00:00
Bart Van Assche
337fe08a72
scst_vdisk: Kernel v4.4 build fix
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6697 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-18 22:10:33 +00:00
Bart Van Assche
1c349edbc0
scst_pres: Suppress a compiler warning when building against a kernel with no DLM support
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6696 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-18 22:10:03 +00:00
Bart Van Assche
96bdede086
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
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6695 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-18 19:36:01 +00:00
Vladislav Bolkhovitin
1c9b1f0baa
scst: Rework Copy Manager's sysfs interface
...
The old version had management incompatible with scstadmin and had
issues with LUNs management.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6694 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-18 04:09:50 +00:00
Vladislav Bolkhovitin
f2d7532eb1
scst: Add user space control for suspend/resume activities
...
Useful to speed up mass management
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6693 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-18 03:59:30 +00:00
Bart Van Assche
10a3374bc0
scstadmin: Pass $PREFIX to Makefile.PL
...
Signed-off-by: Alexey Mochkin <alukardd@alukardd.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6691 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-14 01:07:27 +00:00
Bart Van Assche
7588498c4a
scstadmin: Leave out the copy manager from the driver list
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6690 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-13 21:07:50 +00:00
Bart Van Assche
cfe0d34201
scstadmin: Do not try to clear copy manager assignments
...
This patch avoids that the following error message is displayed on the
console while "/etc/init.d/scst start" is executed:
scst: scst_cm_mgmt:3556:***ERROR***: Device copy_manager_tgt not found
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6689 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-13 19:07:10 +00:00
Bart Van Assche
06708a1d03
scst: Fix kernel 2.6.36 build
...
Avoid that compilation fails with the following error message:
include/linux/slub_def.h:246: error: conflicting types for ‘kmalloc’
include/scst/backport.h:458: error: implicit declaration of function ‘kmalloc’
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6688 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-13 16:26:09 +00:00
Vladislav Bolkhovitin
c3f3e0aa64
Update the root README regarding QLogic target driver
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6687 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-12 23:33:45 +00:00
Bart Van Assche
3f818ef30e
scst_lib: Avoid using 64-bit divisions
...
Reported-by: Sebastian Herbszt <herbszt@gmx.de >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6686 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-12 22:17:59 +00:00
Bart Van Assche
8b7820129a
qla2x00t: Use strlcpy() instead of strcpy()
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6685 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-12 18:30:42 +00:00
Bart Van Assche
2bdb7bfc8d
qla2x00t: Do not compare an array pointer with NULL
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6684 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-12 18:30:15 +00:00
Bart Van Assche
22a203d843
qla2x00t: Suppress a Coverity complaint about a potential buffer overflow
...
Coverity reported the following:
Copy into fixed size buffer (STRING_OVERFLOW)
fixed_size_dest: You might overrun the 17 byte fixed-size string
ha->model_number by copying def without checking the length.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6683 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-12 18:26:26 +00:00
Bart Van Assche
e1d9ed0128
scst_copy_mgr: Fix indentation
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6682 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-12 17:43:26 +00:00
Vladislav Bolkhovitin
2c6eac2c24
SVN_TAGS updated
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6679 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-12 03:45:07 +00:00
Vladislav Bolkhovitin
254f91f291
scst: Fix race leading to extra device unblocking in mix of strictly serialized and TM commands
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6674 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-12 01:08:06 +00:00
Vladislav Bolkhovitin
cf4aa89416
Cleanups
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6673 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-12 01:06:51 +00:00
Bart Van Assche
c800406f8c
scstadmin, test 03: Skip the copy manager
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6672 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-11 23:57:31 +00:00
Bart Van Assche
fea566969f
scstadmin: Do not save copy_manager LUN definitions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6671 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-11 23:56:56 +00:00
Bart Van Assche
0597ac78c8
iscsi-scst: Fix IPv6 format specifications
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6670 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-11 22:05:05 +00:00
Bart Van Assche
4bda296d64
isert-scst: Fix an IPv6 format specification
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6669 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-11 22:04:42 +00:00
Bart Van Assche
295910c6c7
scst_dlm: Use kstrtoul() instead of simple_strtoul()
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6668 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-11 14:39:01 +00:00
Bart Van Assche
147aededc7
scst: Insert a blank line after each declaration
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6667 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-11 14:24:14 +00:00
Bart Van Assche
fe7321fd7a
scst_copy_mgr: Join two strings
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6666 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-11 14:18:55 +00:00