Commit Graph

5233 Commits

Author SHA1 Message Date
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
122a343343 ib_srpt: Fix RHEL / CentOS 7.3 build
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7063 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-17 12:46:51 +00:00
Bart Van Assche
aae05f0af4 ib_srpt: Fix build against MOFED v3.4
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7062 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-17 12:41:41 +00:00
Bart Van Assche
3f9439a772 ib_srpt: Revert r7050
r7050 did not change any behavior so revert it. Note for myself: in the
ib_srpt driver the port number is set by the ib_modify_qp() call in
srpt_init_ch_qp().


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7061 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-17 12:33:45 +00:00
Vladislav Bolkhovitin
b3e84925c4 Web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7060 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-16 04:25:04 +00:00
Vladislav Bolkhovitin
4abce7a7f3 Update SVN_TAGS for 3.2.0
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7059 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-16 03:03:59 +00:00
Vladislav Bolkhovitin
53c0c00bf4 Add user space pieces to scst-dist-gzip.
They now essential part of the distribution



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7054 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-16 02:49:45 +00:00
Vladislav Bolkhovitin
55b7684bb7 fileio_tgt: avoid warnings about casting between pointers and integers of different size
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7053 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-16 02:46:49 +00:00
Bart Van Assche
3749ca972b ib_srpt: Create QP on the RDMA port the initiator logged in to
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7050 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-14 12:31:23 +00:00
Bart Van Assche
f09274f365 ib_srpt: Simplify a debug statement
It is likely that ib_device.dma_ops will be removed sooner or later.
Hence make sure that the ib_srpt driver does not depend on it.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7049 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-07 23:52:41 +00:00
Bart Van Assche
b3893277be ib_srpt: Reduce build time
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7048 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-01 16:19:40 +00:00
Bart Van Assche
7cb08382ac ib_srpt Makefile: Follow-up for trunk r6138
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7047 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-01 16:19:14 +00:00
Bart Van Assche
dca84e290b ib_srpt: Only complain if immediate data has to be copied if CONFIG_SLUB_DEBUG=n
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7046 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-01 16:18:39 +00:00
Bart Van Assche
2470b10ad0 scst_vdisk: Remove more unneeded casts
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7045 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-01 05:22:01 +00:00
Bart Van Assche
e42dfbbb72 scst_vdisk: Remove a superfluous cast
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7044 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-01 05:16:15 +00:00
Bart Van Assche
c9eae551f5 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>.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7043 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-01 05:10:43 +00:00
Bart Van Assche
07e91f348e scripts/run-regression-tests: Avoid that "make oldconfig" hangs
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7042 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-01 05:08:58 +00:00
Bart Van Assche
89e17d75c9 scst: Use READ_ONCE() instead of ACCESS_ONCE()
This is a stylistic change only.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7041 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-01 05:07:48 +00:00
Bart Van Assche
38991d1222 scst_mem: Fix indentation
See also trunk r677.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7040 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-01 05:06:36 +00:00
Vladislav Bolkhovitin
1dd41fa380 generate-kernel-patch: fix custom cross-compilation kernel case
Otherwise there is non-fatal error like: No such file or directory

grep: /lib/modules/<current_running_kernel>/build/.config: Permission denied

This is a better version of r7022 suggested by Bart



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7037 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-11-30 03:06:38 +00:00
Bart Van Assche
a274e9a82b scripts/run-regression-tests: Disable CONFIG_STACK_VALIDATION and CONFIG_X86_X32
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7036 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-11-26 19:25:30 +00:00
Bart Van Assche
af36dbc1f4 scripts/generate-kernel-patch: Fix shellcheck warnings
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7035 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-11-26 19:25:06 +00:00
Bart Van Assche
2c9728e4cf iscsi-scst/Makefile: Fix INFINIBAND_ENABLED test
Running "make install" ensures that the kernel config file is available
in $(KDIR)/.config. However, that file is not available if $(KDIR) points
at a kernel that comes from a Linux distributor. Hence change the
$(INFINIBAND_ENABLED) test to check $(KDIR)/../modules.symbols.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7034 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-11-24 17:32:40 +00:00
Bart Van Assche
881402bdc3 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7033 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-11-24 17:15:14 +00:00
Bart Van Assche
6ba9d088ee scripts/generate-kernel-patch: Revert r7022
Revert r7022 because:
* Changing $kver3 into $kver is wrong for 2.x kernels.
* Building include/iscsi_scst_itf_ver.h must not depend on the kernel version.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7032 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-11-24 16:53:00 +00:00
Vladislav Bolkhovitin
6258844d60 scst: fix overflows handling for tapes
Reported and tested by Matthew D. Frederes <matt@bitech.biz>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7029 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-11-23 03:45:35 +00:00
Vladislav Bolkhovitin
9ed7b217e3 generate-kernel-patch: optimize generation of Makefile for scst_local
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7028 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-11-17 05:24:07 +00:00
Vladislav Bolkhovitin
84c71bc53e generate-kernel-patch: optimize generation of Makefile.drivers patch
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7027 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-11-17 05:18:55 +00:00
Vladislav Bolkhovitin
11be80dac7 generate-kernel-patch: optimize generation of Makefile for drivers/Kconfig
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7026 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-11-17 05:12:33 +00:00
Vladislav Bolkhovitin
66b195dd2f generate-kernel-patch: optimize generation of Makefile for scst
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7025 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-11-17 05:06:59 +00:00
Vladislav Bolkhovitin
fc892680c8 generate-kernel-patch: optimize generation of Makefile for dev_handlers
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7024 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-11-17 04:55:15 +00:00
Vladislav Bolkhovitin
7083e395e9 generate-kernel-patch: optimize generation of Makefile for qla2x00t
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7023 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-11-17 04:44:48 +00:00
Vladislav Bolkhovitin
b2fa7521a7 generate-kernel-patch: fix custom cross-compilation kernel case
Otherwise there is non-fatal error like: No such file or directory

grep: /lib/modules/<current_running_kernel>/build/.config: Permission denied



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7022 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-11-17 04:33:38 +00:00
Bart Van Assche
7f1d8c91b1 iscsi-scst: Port to Linux kernel versions >= v4.7
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7021 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-26 21:33:50 +00:00
Bart Van Assche
599a059cf8 isert-scst: Port to Linux kernel v4.9
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7020 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-25 22:22:07 +00:00
Bart Van Assche
bfe9d77412 isert-scst: Cache L_Key
This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7019 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-25 22:21:46 +00:00
Bart Van Assche
8c04ce53f4 ib_srpt: Port to Linux kernel v4.9
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7018 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-25 20:50:34 +00:00
Bart Van Assche
120c66f924 ib_srpt: Cache global L_Key
This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7017 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-25 20:50:15 +00:00
Bart Van Assche
e837ec7dcd scst_user: Port to Linux kernel v4.9
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7016 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-25 20:49:21 +00:00
Vladislav Bolkhovitin
d4227adcb6 Docs updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7015 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-22 02:19:03 +00:00
Bart Van Assche
449eb5944b scstadmin: Avoid that specifying an attribute multiple times results in an incomprehensible error message
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7014 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-21 21:54:02 +00:00
Bart Van Assche
7c4b50692c scst regression tests: Unload the scst kernel module explicitly
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7013 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-21 21:21:29 +00:00
Vladislav Bolkhovitin
b561c5a43d iscsi-scst: HOWTO updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7012 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-18 05:00:58 +00:00
Vladislav Bolkhovitin
1f72d604cc iscsi-scst: fix false positive BUG_ON()
It's false positive, because responses live in the parent request's list
until last put for the parent.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7009 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-14 01:30:17 +00:00
Vladislav Bolkhovitin
1d98ab7e7a README.drbd: update to point to README.dlm for reservations sync
Suggested-by: Curtis Maloney <curtis@tinbrain.net>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7008 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-12 01:27:42 +00:00
Vladislav Bolkhovitin
43ef6f912f fileio_tgt: fix debug output
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7007 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-11 03:30:54 +00:00
Vladislav Bolkhovitin
be8b679bb8 scst: fix tapes handling with Windows initiators
Reported and tested by Florian Gall <florian@enterprize.dyndns.info>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7006 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-11 03:06:41 +00:00
Bart Van Assche
74a537dcfd ib_srpt: Enable S/G-list clustering
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7004 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-10 18:51:42 +00:00