Commit Graph

5653 Commits

Author SHA1 Message Date
Bart Van Assche
bc85808150 Merge branch 'svn-trunk' 2017-02-23 18:38:45 -08:00
Bart Van Assche
ab0e7cc0be scst_copy_mgr: Avoid that LUN removal triggers a BUG()
Reported-by: Jinpu Wang <jinpu.wang@profitbricks.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7096 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-02-24 02:08:17 +00:00
Bart Van Assche
585c5d2fe0 scst_copy_mgr: Convert comments about locking into runtime checks
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7095 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-02-24 02:07:29 +00:00
Bart Van Assche
621cd3adf7 Merge branch 'svn-trunk' 2017-02-07 18:28:44 -08:00
Bart Van Assche
2a074789ac scstadmin: Revert r7014
The immediateExit() call introduced in r7014 prevents to assign multiple
values to attributes that support multiple values, e.g. 'allowed_portal'.
Hence revert r7014.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7092 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-02-05 06:52:06 +00:00
Bart Van Assche
bddec074a2 scst_sgv: Convert to kernel v4.10 2017-02-02 13:44:45 -08:00
Bart Van Assche
361bba626f ib_srpt: Fix ib_dma_map_ops test 2017-02-02 13:44:44 -08:00
Bart Van Assche
ce4edcf7b3 ib_srpt: Fix a copy/paste bug 2017-02-02 13:44:44 -08:00
Bart Van Assche
e45cbab700 scst: Port to Linux kernel v4.10 2017-02-02 13:44:43 -08:00
Vladislav Bolkhovitin
5930008dba Add scstadmin in the dist archive
Reported by David Chen <david.chen@osnexus.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7091 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-01-24 00:29:41 +00:00
Bart Van Assche
cf185c85c0 Merge branch 'svn-trunk' 2017-01-10 17:52:45 -08:00
Bart Van Assche
4538bc1c81 scst: Fix a memory leak
Avoid that the memory allocated for struct scst_acn and its name is
leaked by scst_del_acg().


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7090 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-01-11 01:16:07 +00:00
Bart Van Assche
473db9c997 Merge branch 'svn-trunk' 2017-01-08 13:46:29 -08:00
Bart Van Assche
b51c624855 ib_srpt: Only report that SRQ creation failed if it was attempted to create an SRQ
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7089 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-01-08 21:46:20 +00:00
Bart Van Assche
3abcc849df ib_srpt: Destroy SRQ before freeing the buffers posted on the SRQ
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7088 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-01-08 21:45:39 +00:00
Bart Van Assche
db686530c9 ib_srpt: Rename a symbolic constant
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7087 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-01-08 21:10:54 +00:00
Bart Van Assche
c9b2dfa070 ib_srpt: Remove a local variable
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7086 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-01-08 21:10:32 +00:00
Bart Van Assche
614fed27be Merge branch 'svn-trunk' 2017-01-08 04:47:58 -08:00
Bart Van Assche
81fd215772 isert-scst: Follow-up for r7084
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7085 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-27 20:42:22 +00:00
Bart Van Assche
9cbe881f2f isert-scst: Fix CentOS 7.3 build
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7084 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-27 20:26:11 +00:00
Bart Van Assche
db36d29932 isert-scst: Rename SCST_DIR into SCST_SYMVERS_DIR
Additionally, align shell code.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7083 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-27 20:25:13 +00:00
Bart Van Assche
db5426169b ib_srpt: Improve portability
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7082 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-27 20:23:31 +00:00
Bart Van Assche
6912463c2e ib_srpt: Fix nightly build
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7081 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-27 20:21:53 +00:00
Vladislav Bolkhovitin
a24bf679b8 Cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7080 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-22 03:07:19 +00:00
Vladislav Bolkhovitin
e57c13a0e8 Web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7079 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-21 03:42:30 +00:00
Vladislav Bolkhovitin
bdfc767077 scst: document nolockdep patches
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7078 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-21 03:39:24 +00:00
Bart Van Assche
9f662f2c7c scripts/run-regression-tests: Provide <linux/compiler-gcc6.h> if needed 2016-12-20 11:05:12 +01:00
Bart Van Assche
c9f082ebe1 Another fix for patch "ib_srpt: Fix nightly build" 2016-12-20 10:49:29 +01:00
Vladislav Bolkhovitin
5e73767a1b scst: minor forwarding mode fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7077 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-20 06:28:41 +00:00
Vladislav Bolkhovitin
283b30f603 scst: add thread_index sysfs attribute
This attribute exports per LUN thread index assigned by
scst_add_threads(). It can be used to look up which export thread is
serving which target since this index also appears in the export thread
name. This information then could be used to set CPU affinity for those threads to improve performance.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7076 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-20 06:27:38 +00:00
Vladislav Bolkhovitin
bdb23b8923 scst: performance improvements
This patch trying to allocate memory in per-NUMA and per-CPU manner to
(significantly) improve performance for high IOPS cases.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7075 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-20 06:21:13 +00:00
Vladislav Bolkhovitin
807836950b scst: improve latency statistics
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7074 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-20 06:17:11 +00:00
Vladislav Bolkhovitin
2475def30d scst: add max_tgt_dev_commands sysfs attribute
This per-device attribute allows to control maximum number of SCSI
commands any session to this device can have in flight. It makes
currently hardcoded constant be run time configurable.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7073 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-20 06:14:55 +00:00
Vladislav Bolkhovitin
42459a6725 scst: add ACA support
ACA (Auto Contingent Allegiance) is a way to handle CHECK CONDITION
status. It significantly improves performance of AIX systems.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7072 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-20 06:10:56 +00:00
Vladislav Bolkhovitin
4e1dc1b526 scst: improve thin provisioning support
This patch adds gen_tp_soft_threshold_reached_UA attribute for thin
provisioned devices that allows to generate THIN PROVISIONING SOFT
THRESHOLD REACHED Unit Attention.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7071 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-20 06:07:55 +00:00
Vladislav Bolkhovitin
5040dd22a4 iscsi-scst: document thread_pid attribute
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7070 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-20 06:01:34 +00:00
Vladislav Bolkhovitin
c9b301bf39 iscsi-scst: add per_sess_dedicated_tgt_threads attribute in ini groups
If this attrubute is set, each iSCSI session for this initiator has
dedicated, i.e. not shared with other sessions, pool of the iscsi{wr,rd}
kernel threads.

Useful to control per-session CPU affinity to improve performance.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7069 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-20 06:00:43 +00:00
Vladislav Bolkhovitin
df55eeb5da Minor misc changes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7068 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-20 05:55:19 +00:00
Vladislav Bolkhovitin
bb2f47e7a8 iscsi-scst: add target_ip attribute
It adds target_ip attribute containing target IP address in each
/sys/kernel/scst_tgt/targets/iscsi/TARGET/sessions/INITIATOR/INITIATOR_IP subdirectory.

It's useful to simplify monitoring management utilities



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7067 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-20 05:53:48 +00:00
Vladislav Bolkhovitin
80e49beea8 Put_page_callback and scst_exec_req_fifo patches for RHEL5/6
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7066 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-20 05:49:07 +00:00
Vladislav Bolkhovitin
6c95c681ac scst: avoid false lockdep complaints about recursive locking
In some cases SCST needs to take multiple locks recursivly, e.g. to lock
all tgt_devs in a session. For this case SCST takes those locks in their
current sort order, e.g. by LUN for tgt_devs, then releases in the
opposite order. Unfortunately, lockdep complains on such actions as
recursive locking, then disables itself. The disabling itself action is
the most unpleasant one leading to lockdep being useless after this point.

Unfortunately, nested locking annotations can't help, because after
free, then alloc again, or after LUN change (in case of tgt_devs) order
of locks can change.

So, this patch implements a way to annotate some lock and unlock actions
as "no lockdep", so lockdep will not track them. It contains related
kernel patches for some kernels.

This is a debug aid only useful only with lockdep enabled kernels.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7065 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-20 05:47:15 +00:00
Bart Van Assche
8845ef4bb3 Fix patch "ib_srpt: Fix nightly build" 2016-12-19 19:39:25 +01:00
Bart Van Assche
34dd80153e isert-scst: Fix CentOS 7.3 build 2016-12-19 15:16:48 +01:00
Bart Van Assche
92a2cb05ec isert-scst: Rename SCST_DIR into SCST_SYMVERS_DIR
Additionally, align shell code.
2016-12-19 15:16:41 +01:00
Bart Van Assche
ec4d623028 ib_srpt: Fix nightly build 2016-12-19 15:15:48 +01:00
Bart Van Assche
6f639f07e2 ib_srpt, Makefile: Align shell code 2016-12-19 15:15:48 +01:00
Bart Van Assche
0fdb98e5d5 ib_srpt: Fix MOFED build 2016-12-19 15:15:48 +01:00
Bart Van Assche
1567392211 ib_srpt: CentOS 7.3 build fix 2016-12-19 11:38:13 +01:00
Bart Van Assche
250aead21d ib_srpt: Only report that SRQ creation failed if it was attempted to create an SRQ 2016-12-19 11:38:13 +01:00
Bart Van Assche
34d98213ef ib_srpt: Destroy SRQ before freeing the buffers posted on the SRQ 2016-12-19 11:38:13 +01:00