Commit Graph
821 Commits
Author SHA1 Message Date
Bart Van Assche 613faef565 isert-scst: Port to kernel v5.3 (merge r8475 and r8482 from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@8483 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-25 04:34:41 +00:00
Bart Van Assche 32b49ce1f2 iscsi-scst: Detect at compile time whether or not max_recv_sge is available (merge r8399 from trunk)
Signed-off-by: Sergey Gorenko <sergeygo@mellanox.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@8470 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-23 15:11:42 +00:00
Bart Van Assche 561cdf68e8 iscsi-scst, srpt: Restore MOFED_MAJOR and MOFED_MINOR definitions (merge r8397 from trunk)
This patch reverts commit bcdb25e550 (r7363).


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@8469 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-23 15:09:18 +00:00
Bart Van Assche 93a9cf11bc iscsi-scst: Work around a compatibility problem between MOFED and DTRACE (merge r8396 from trunk)
When building against Oracle Linux + MOFED the build fails unless if
DTrace is disabled. Hence disable DTrace for the isert-scst module if
MOFED is detected.

Signed-off-by: Sergey Gorenko <sergeygo@mellanox.com>
[ bvanassche: Left out one empty OFED_CONFIG assignment ]


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@8468 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-23 15:08:29 +00:00
Bart Van Assche 17de279179 Use KERNEL_DS instead of get_ds() (merge r8057 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@8059 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-18 02:13:27 +00:00
Bart Van Assche 25163da641 iscsi-scst: Fix a use-after-free (merge r8056 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@8058 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-18 01:01:42 +00:00
Bart Van Assche db55949455 Makefiles: Stop using $(SUBDIRS) (merge r7851 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7898 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-01-13 21:57:33 +00:00
Bart Van Assche dc5e6f64ad Bump release data from November 4th to November 25th
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7830 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-26 00:39:12 +00:00
Bart Van Assche 2d1e614aa1 scst, iscsi-scst: Port to Linux kernel v4.20 (merge r7810 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7813 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-18 23:39:57 +00:00
Bart Van Assche baa9d2513f Change version number to 3.3.0
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7786 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-04 20:06:20 +00:00
Bart Van Assche e669d8fc39 Merge r7522 from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7774 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-04 17:09:24 +00:00
Bart Van Assche 30edcf0f85 Merge r7520 from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7772 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-04 17:07:48 +00:00
Bart Van Assche 128f1c2add Merge r7518 from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7770 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-04 17:03:58 +00:00
Bart Van Assche 7f173868dc Merge r7517 from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7769 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-04 17:03:38 +00:00
Bart Van Assche abdb80fe67 Merge r7516 from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7768 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-04 17:03:09 +00:00
Bart Van Assche 5f5b6e2b7c Merge r7505 from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7757 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-04 16:08:54 +00:00
Bart Van Assche 5fa304cce4 Merge r7504 from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7756 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-04 16:07:44 +00:00
Bart Van Assche 27d988ca2f Merge r7396 from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7749 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-04 16:00:42 +00:00
Bart Van Assche e82509013f Merge r7491 from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7739 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-04 04:46:40 +00:00
Bart Van Assche bff01d0c06 Merge r7472 from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7725 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-04 04:39:44 +00:00
Bart Van Assche 0ec38141b8 Merge r7449 from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7702 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-04 04:30:44 +00:00
Bart Van Assche 21de9828cd Merge r7444 from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7697 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-04 04:28:58 +00:00
Bart Van Assche 9cedd5b07c Merge r7435 from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7688 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-04 04:17:09 +00:00
Bart Van Assche 3ed6cd492b Merge r7430 from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7683 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-04 04:15:11 +00:00
Bart Van Assche 8131120815 Merge r7429 from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7682 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-04 04:14:52 +00:00
Bart Van Assche 611c402782 Merge r7363 from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7623 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-04 03:00:15 +00:00
Bart Van Assche c6e9b8cbf6 iscsi-scst: Fix spelling in a source code comment
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7594 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-01 04:45:10 +00:00
Bart Van Assche 495bd54e09 iscsi-scst: fix a subtle race inside the EXTRACHECKs facility
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7592 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-01 04:43:58 +00:00
Bart Van Assche 0157b92e46 iscsi-scst/kernel/conn.c: Fix source code indentation
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7561 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-01 04:24:27 +00:00
Bart Van Assche a7870940fa iscsi-scst: Fix a format specifier
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7560 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-01 04:23:46 +00:00
Bart Van Assche dbdf7becb2 Fix kernel-doc warnings
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7552 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-01 04:17:39 +00:00
Bart Van Assche 145db52f3f Convert setup_timer() into timer_setup() calls
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7548 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-01 04:14:25 +00:00
Bart Van Assche 33c1621245 iscsi-scst: Convert init_timer() into setup_timer() calls
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7546 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-01 04:13:05 +00:00
Vladislav Bolkhovitin ae2b9dc782 Merged revisions 7272 via svnmerge from
svn+ssh://svn.code.sf.net/p/scst/svn/trunk

........
  r7272 | bvassche | 2017-12-19 16:35:40 +0000 (Tue, 19 Dec 2017) | 1 line
  
  iscsi-scst: UEK 4.1.12-103.9.7.el7uek.x86_64 build fix


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7289 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-12-23 04:41:26 +00:00
Vladislav Bolkhovitin 129cac067c Merged revisions 7253-7266,7268-7271 via svnmerge from
svn+ssh://svn.code.sf.net/p/scst/svn/trunk

........
  r7253 | vlnb | 2017-10-11 20:22:02 -0700 (Wed, 11 Oct 2017) | 3 lines
  
  scst: add example of active non-optimized setup
........
  r7254 | bvassche | 2017-10-12 07:56:44 -0700 (Thu, 12 Oct 2017) | 1 line
  
  qla2x00t: Fix scst_debug.h include path for the in-tree build
........
  r7255 | bvassche | 2017-10-12 08:03:13 -0700 (Thu, 12 Oct 2017) | 1 line
  
  scripts/specialize-patch: Fix #elif handling
........
  r7256 | vlnb | 2017-10-13 19:18:56 -0700 (Fri, 13 Oct 2017) | 3 lines
  
  Unpdate for kernels 4.12+
........
  r7257 | bvassche | 2017-11-11 21:01:16 -0800 (Sat, 11 Nov 2017) | 1 line
  
  iscsi-scst/usr/Makefile: Pass -Wno-format-truncation if supported
........
  r7258 | bvassche | 2017-11-12 21:48:16 -0800 (Sun, 12 Nov 2017) | 4 lines
  
  ib_srpt: Kernel 4.14 build fix
  
  Signed-off-by: Peter Vyazovik <fuzzhead0@gmail.com>
........
  r7259 | bvassche | 2017-11-12 21:49:08 -0800 (Sun, 12 Nov 2017) | 1 line
  
  scst: Introduce the kernel v4.14 bio_set_dev() macro
........
  r7260 | bvassche | 2017-11-12 21:50:44 -0800 (Sun, 12 Nov 2017) | 5 lines
  
  scst, iscsi-scst: Introduce scst_read(), scst_write(), scst_readv() and scst_writev()
  
  This makes it easier to add support for new kernel versions, e.g. kernel
  version v4.14.
........
  r7261 | bvassche | 2017-11-13 08:00:09 -0800 (Mon, 13 Nov 2017) | 1 line
  
  scst/src/scst_lib.c: Fix recently introduced checkpatch complaints
........
  r7262 | bvassche | 2017-11-13 08:18:00 -0800 (Mon, 13 Nov 2017) | 4 lines
  
  scst: Fix build for kernels 3.15 and older
  
  blk_rq_set_block_pc() was introduced in kernel 3.16.
........
  r7263 | bvassche | 2017-11-13 08:24:16 -0800 (Mon, 13 Nov 2017) | 1 line
  
  nightly build: Update kernel versions
........
  r7264 | bvassche | 2017-11-13 08:47:10 -0800 (Mon, 13 Nov 2017) | 1 line
  
  scst: Address two checkpatch warnings
........
  r7265 | bvassche | 2017-11-13 08:47:43 -0800 (Mon, 13 Nov 2017) | 1 line
  
  scst/src/scst_targ: Use READ_ONCE() instead of ACCESS_ONCE()
........
  r7266 | bvassche | 2017-11-13 08:49:39 -0800 (Mon, 13 Nov 2017) | 1 line
  
  fcst/fcst.h: Add identifier names
........
  r7268 | bvassche | 2017-11-14 08:37:24 -0800 (Tue, 14 Nov 2017) | 1 line
  
  scst: Fix kernel <= 2.6.30 build
........
  r7269 | bvassche | 2017-11-14 18:45:57 -0800 (Tue, 14 Nov 2017) | 1 line
  
  nightly/bin/nightly: Clone the source code tree quietly
........
  r7270 | bvassche | 2017-11-14 18:47:06 -0800 (Tue, 14 Nov 2017) | 1 line
  
  nightly build: Update kernel versions
........
  r7271 | bvassche | 2017-11-14 18:48:03 -0800 (Tue, 14 Nov 2017) | 1 line
  
  nightly/conf/nightly.sendmail: Use mail if mutt is not available
........


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7288 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-12-23 04:30:51 +00:00
Vladislav Bolkhovitin e5d322d4ab Merged revisions 7233-7244 via svnmerge from
svn+ssh://svn.code.sf.net/p/scst/svn/trunk

........
  r7233 | bvassche | 2017-09-20 08:09:38 -0700 (Wed, 20 Sep 2017) | 4 lines
  
  ib_srpt: Support systems with more than 255 CPU cores
  
  Signed-off-by: Kirill Malkin <kirillmalkin.km@gmail.com>
........
  r7234 | bvassche | 2017-09-24 18:52:53 -0700 (Sun, 24 Sep 2017) | 2 lines
  
  iscsi-scst/Makefile: Change MOFED path into /usr/src/ofa_kernel/default
........
  r7235 | bvassche | 2017-09-25 16:35:49 -0700 (Mon, 25 Sep 2017) | 1 line
  
  iscsi-scst/Makefile, Ubuntu: Simplify code for version querying
........
  r7236 | bvassche | 2017-10-02 16:56:47 -0700 (Mon, 02 Oct 2017) | 1 line
  
  scripts/specialize-patch: Process ENABLE_NPIV and FC_VPORT_CREATE_DEFINED correctly
........
  r7237 | bvassche | 2017-10-02 17:04:53 -0700 (Mon, 02 Oct 2017) | 2 lines
  
  scripts/generate-kernel-patch: Fix a regression introduced in r7164
........
  r7238 | bvassche | 2017-10-02 17:05:42 -0700 (Mon, 02 Oct 2017) | 1 line
  
  scripts/specialize-patch: Process CONFIG_SCST_STRICT_SERIALIZING correctly
........
  r7239 | bvassche | 2017-10-03 15:49:35 -0700 (Tue, 03 Oct 2017) | 1 line
  
  isert-scst: Make an error message more informative
........
  r7240 | bvassche | 2017-10-03 16:08:29 -0700 (Tue, 03 Oct 2017) | 1 line
  
  scst: Port to kernel v4.13
........
  r7241 | bvassche | 2017-10-03 16:10:03 -0700 (Tue, 03 Oct 2017) | 1 line
  
  nightly build: Update kernel versions
........
  r7242 | bvassche | 2017-10-05 09:57:27 -0700 (Thu, 05 Oct 2017) | 1 line
  
  scst: Port to openSUSE Leap 42.x
........
  r7243 | bvassche | 2017-10-05 16:48:25 -0700 (Thu, 05 Oct 2017) | 1 line
  
  fcst: Port to openSUSE Leap
........
  r7244 | bvassche | 2017-10-05 16:48:51 -0700 (Thu, 05 Oct 2017) | 1 line
  
  qla2x00t: Port to openSUSE Leap
........


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7246 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-06 04:51:04 +00:00
Vladislav Bolkhovitin 3bd81edc6e Version changed to 3.3.0-rc
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7227 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-09-01 03:57:09 +00:00
Bart Van Assche 0518777b2d iscsi-scst: Suppress a recently introduced compiler warning
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7222 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-08-27 22:20:01 +00:00
Bart Van Assche cc2b24478c iscsi-scst/kernel/event.c: Port to kernel v4.12
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7219 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-08-27 15:53:16 +00:00
Bart Van Assche 9e35afe1e0 Annotate fall-through in switch statements in a form recognized by gcc 7
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7216 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-08-27 15:28:57 +00:00
Bart Van Assche f3d11b715b iscsi-scst/Makefile: Add include/uapi directory to the include path
Reported-by: Sergey Gorenko <sergeygo@mellanox.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7215 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-08-10 19:39:27 +00:00
Bart Van Assche 64d40aeeb2 iscsi-scst/Makefile: Simplify MLNX_OFED support code
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7214 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-08-10 18:26:29 +00:00
Bart Van Assche 4edaf3e4bf iscsi-scst/Makefile: Simplify MLNX_OFED detection for Red Hat
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7213 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-08-10 18:25:47 +00:00
Vladislav Bolkhovitin 41a287734f iscsi-scst: fix a couple of bad-function-cast warnings
This is a "marginal" warning, but there are only six of them in the SCST code
and this fixes two of those.

session.c:105:4: warning: cast from function call of type void * to non-matching type _Bool [-Wbad-function-cast]
target.c:668:14: warning: cast from function call of type void * to non-matching type _Bool [-Wbad-function-cast]

Signed-off-by: David Butterfield <dab21774@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7200 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-06-01 03:53:08 +00:00
Vladislav Bolkhovitin e5e4531049 iscsi-scst: cleanup
There's no need to end-align the padding. Plus, it's not optimal to
access front misaligned memory

Reported-by: David Butterfield <dab21774@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7195 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-05-25 02:11:06 +00:00
Bart Van Assche 81f80e1708 isert-scst: Fix a race condition that was introduced accidentally in r7184
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7186 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-05-16 02:04:47 +00:00
Bart Van Assche 830369e50d isert-scst: Avoid that shutdown sporadically hangs
Waiting for other threads to release an object using code like
"while (object->refcnt > 0) msleep(100)" without holding a reference
on 'object' is wrong because the memory object points at may be freed
before or while this loop is in progress. Hence introduce a global
portal object count and wait on that count instead of waiting for
the per-portal reference count to reach zero.

The use-after-free was introduced in r6952 ("isert: faster release
of isert_scst module").

See also https://sourceforge.net/p/scst/tickets/2/.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7184 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-05-14 18:53:01 +00:00
Bart Van Assche cda5cadb1c isert-scst: Enable type checking for isert portal pointers
This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7183 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-05-14 18:49:04 +00:00
Israel Rukshin 28c5d73550 isert-scst: fix isert connection teardown flow
Synchronizing the rdma_disconnect() with the post drain wr
as other ULPs like iSER do.

Signed-off-by: Israel Rukshin <israelr@mellanox.com>

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7181 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-05-14 13:45:02 +00:00
Bart Van Assche b4118ea0f1 scst/include/backport.h: Add a kref_read() backport
This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7178 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-05-14 03:06:54 +00:00