Commit Graph

5219 Commits

Author SHA1 Message Date
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
Bart Van Assche
47183f2b16 ib_srpt: Fix a race condition in the initialization code
Initialize port information before registering the CM ID. One of
the functions called by the CM handler (srpt_cm_req_recv())
namely uses the SCST target pointer so that pointer must be
initialized before the CM ID is registered. This patch avoids that
SRP login during ib_srpt initialization sporadically triggers the
following bug:

ib_srpt: Rejecting login with reason 0x10001
BUG: unable to handle kernel NULL pointer dereference at 0000000000000100
IP: [<ffffffffa09f1ccf>] srpt_cm_req_recv+0xf3f/0xf60 [ib_srpt]
Call Trace:
 [<ffffffffa09f1dd5>] srpt_ib_cm_req_recv+0xe5/0x110 [ib_srpt]
 [<ffffffffa06c6fae>] cm_process_work+0x1e/0x130 [ib_cm]
 [<ffffffffa06c9ca8>] cm_req_handler+0x398/0x460 [ib_cm]
 [<ffffffffa06c9e25>] cm_work_handler+0xb5/0x208 [ib_cm]
 [<ffffffff8107d2fc>] process_one_work+0x16c/0x350
 [<ffffffff8108002a>] worker_thread+0x17a/0x410
 [<ffffffff810843f6>] kthread+0x96/0xa0
 [<ffffffff8146f364>] kernel_thread_helper+0x4/0x10



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7003 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-10 18:51:06 +00:00
Bart Van Assche
95979e90cf ib_srpt: Retry with a smaller send queue size if QP creation fails
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7001 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-10 18:10:13 +00:00
Bart Van Assche
9c466a504a ib_srpt: Rework QP failure reporting code
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7000 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-10 18:09:51 +00:00
Bart Van Assche
ec59b087a7 ib_srpt README: Correct default srpt_sq_size
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6999 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-10 18:09:32 +00:00
Bart Van Assche
c707a4fd2d ib_srpt: Use tabs instead of spaces to indent
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6998 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-10 18:09:12 +00:00
Vladislav Bolkhovitin
5685448c0f SCST README: clarification
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6997 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-07 23:34:34 +00:00
Bart Van Assche
2eae3f9f13 scst_vdisk: Use op_is_write() instead of comparing with REQ_OP_WRITE
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6994 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-07 00:45:18 +00:00
Bart Van Assche
a7c1369787 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6993 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-07 00:31:52 +00:00
Bart Van Assche
cf02e20771 scstadmin: Sort group and device group names alphabetically
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6992 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-07 00:22:47 +00:00
Bart Van Assche
d41307c162 scst: Port to Linux kernel v4.8
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6991 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-06 19:20:57 +00:00
Bart Van Assche
87005fe89a scst_vdisk: Rename blockio_rw_sync() into blockio_read_sync()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6990 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-06 19:10:00 +00:00
Bart Van Assche
df048bde68 fcst: Bump version number
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6989 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-04 05:24:49 +00:00
Bart Van Assche
67b215a3ff scstadmin: Bump version number
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6988 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-04 05:24:35 +00:00
Bart Van Assche
a1f3219ff5 scst/include/backport.h: Fix RHEL/CentOS 7 build
RHEL 7 and CentOS 7 provide a definition of ktime_before(). Hence
hide the ktime_before() definition on these Linux distro's.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6986 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-10-03 22:00:52 +00:00