Bart Van Assche
094a6be70d
scstadmin: Add a seventh regression test
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6733 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-11 18:33:17 +00:00
Bart Van Assche
9484c62c41
scstadmin.sysfs/Makefile: Add and comment out TEST_VERBOSE=1
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6732 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-11 18:31:49 +00:00
Bart Van Assche
e4a852e599
scstadmin regression tests: Rename two files
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6731 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-11 17:39:55 +00:00
Bart Van Assche
2b4abe603a
scst/include/backport.h: Add kfree_rcu() definition for kernels < 3.0
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6730 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-11 05:52:45 +00:00
Vladislav Bolkhovitin
1099848397
scst: small addition to r6724
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6728 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-11 01:51:31 +00:00
Bart Van Assche
53a9829a45
ib_srpt: Fix a runtime warning
...
Avoid that the following warning is reported:
WARNING: CPU: 7 PID: 32692 at kernel/sched/core.c:7533 __might_sleep+0x82/0x90()
do not call blocking ops when !TASK_RUNNING; state=1 set at [<ffffffffa08f5f0b>]
srpt_compl_thread+0xab/0x1c0 [ib_srpt]
Call Trace:
[<ffffffff81251afb>] dump_stack+0x4f/0x74
[<ffffffff810574cb>] warn_slowpath_common+0x8b/0xd0
[<ffffffff810575b1>] warn_slowpath_fmt+0x41/0x70
[<ffffffff810804c2>] __might_sleep+0x82/0x90
[<ffffffff81113f74>] mempool_alloc+0x94/0x180
[<ffffffffa04ff80c>] scst_alloc_mgmt_cmd+0x4c/0x120 [scst]
[<ffffffffa04dc1e4>] scst_pre_rx_mgmt_cmd+0x84/0x1e0 [scst]
[<ffffffffa04dc6ea>] scst_rx_mgmt_fn+0x8a/0x3e0 [scst]
[<ffffffffa08f53fe>] scst_rx_mgmt_fn_lun+0x6e/0x90 [ib_srpt]
[<ffffffffa08f55e1>] srpt_handle_tsk_mgmt+0x1c1/0x2f0 [ib_srpt]
[<ffffffffa08f58d0>] srpt_handle_new_iu+0x1c0/0x230 [ib_srpt]
[<ffffffffa08f5cd9>] srpt_process_rcv_completion+0x89/0xd0 [ib_srpt]
[<ffffffffa08f5d74>] srpt_process_one_compl+0x54/0x70 [ib_srpt]
[<ffffffffa08f5df9>] srpt_poll+0x69/0x90 [ib_srpt]
[<ffffffffa08f5e3e>] srpt_process_completion+0x1e/0x40 [ib_srpt]
[<ffffffffa08f5f3c>] srpt_compl_thread+0xdc/0x1c0 [ib_srpt]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6727 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-11 01:40:41 +00:00
Bart Van Assche
8aae2413b3
ib_srpt: Convert srpt_ch_list_empty() to RCU
...
This patch avoids that the following warning is reported when
unloading the ib_srpt kernel module:
WARNING: CPU: 9 PID: 33739 at kernel/sched/core.c:7533 __might_sleep+0x82/0x90()
do not call blocking ops when !TASK_RUNNING; state=2 set at [<ffffffff81098b73>] prepare_to_wait_event+0x63/0x110
Call Trace:
[<ffffffff81251afb>] dump_stack+0x4f/0x74
[<ffffffff810574cb>] warn_slowpath_common+0x8b/0xd0
[<ffffffff810575b1>] warn_slowpath_fmt+0x41/0x70
[<ffffffff810804c2>] __might_sleep+0x82/0x90
[<ffffffff815186e3>] mutex_lock_nested+0x33/0x380
[<ffffffffa08eeb7b>] srpt_ch_list_empty+0x2b/0x80 [ib_srpt]
[<ffffffffa08f000c>] srpt_release_sport+0xcc/0x2a0 [ib_srpt]
[<ffffffffa08f0215>] srpt_release+0x35/0x80 [ib_srpt]
[<ffffffffa04d8650>] scst_unregister_target+0x70/0x380 [scst]
[<ffffffffa08f26c1>] srpt_remove_one+0xb1/0x150 [ib_srpt]
[<ffffffffa0145a35>] ib_unregister_client+0xe5/0x190 [ib_core]
[<ffffffffa08f6485>] srpt_cleanup_module+0x21/0x2f [ib_srpt]
[<ffffffff810dfbfb>] SyS_delete_module+0x17b/0x1c0
[<ffffffff8151b517>] entry_SYSCALL_64_fastpath+0x12/0x6f
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6726 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-11 01:39:46 +00:00
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
26357306f9
scst: Fix a runtime warning
...
WARNING: CPU: 5 PID: 20857 at kernel/sched/core.c:7533 __might_sleep+0x82/0x90()
do not call blocking ops when !TASK_RUNNING; state=2 set at [<ffffffff81098c13>] prepare_to_wait_event+0x63/0x110
CPU: 5 PID: 20857 Comm: rmmod Tainted: G OE 4.4.0-rc3+ #1
Call Trace:
[<ffffffff81251bcb>] dump_stack+0x4f/0x74
[<ffffffff810574cb>] warn_slowpath_common+0x8b/0xd0
[<ffffffff810575b1>] warn_slowpath_fmt+0x41/0x70
[<ffffffff81080562>] __might_sleep+0x82/0x90
[<ffffffff815187f3>] mutex_lock_nested+0x33/0x380
[<ffffffffa05033ca>] test_sess_list+0x1a/0x40 [scst]
[<ffffffffa050794a>] scst_unregister_target+0x36a/0x380 [scst]
[<ffffffffa09259f1>] srpt_remove_one+0xb1/0x150 [ib_srpt]
[<ffffffffa0145a15>] ib_unregister_client+0xe5/0x190 [ib_core]
[<ffffffffa09297ea>] srpt_cleanup_module+0x26/0x34 [ib_srpt]
[<ffffffff810dfc9b>] SyS_delete_module+0x17b/0x1c0
[<ffffffff8151b617>] entry_SYSCALL_64_fastpath+0x12/0x6f
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com >
2015-12-04 10:44:42 -08: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
7d5c96a72c
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-29 16:20:03 -08: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
66ee4c73cb
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 18:16:52 -08: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
650b196037
Merge branch 'svn-trunk'
2015-11-13 21:29:59 -08: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
Bart Van Assche
9b3a353021
Merge branch 'svn-trunk'
2015-11-12 20:39:26 -08: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