Commit Graph

727 Commits

Author SHA1 Message Date
Bart Van Assche
4794e45e08 ib_srpt: Update release date
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6459 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-31 13:45:34 +00:00
Bart Van Assche
8e6a09d44d ib_srpt: Correct version number
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6458 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-31 13:43:17 +00:00
Bart Van Assche
e84285e7e6 ib_srpt/README: Clarify RoCE documentation
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6455 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-30 18:39:46 +00:00
Bart Van Assche
6e430b5ab6 ib_srpt: Linux kernel v4.2 ib_create_cq() build fix (merge r6426 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6454 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-30 17:35:04 +00:00
Bart Van Assche
19ad30a27e ib_srpt: Test whether ib_create_send_mad() needs a base_version argument (merge r6424 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6453 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-30 17:34:34 +00:00
Bart Van Assche
e276693325 ib_srpt: Linux kernel v4.2 build fix (merge r6423 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6452 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-30 17:33:56 +00:00
Bart Van Assche
ad095bd547 ib_srpt, make clean: Remove all temporary files (merge r6381 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6451 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-30 17:33:07 +00:00
Bart Van Assche
11fde1d7f4 ib_srpt: RHEL 5 build fix (merge r6334 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6450 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-30 17:32:29 +00:00
Bart Van Assche
4623441a2a ib_srpt: RHEL 7.1 build fix (merge r6331 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6449 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-30 17:32:03 +00:00
Bart Van Assche
5dfa94f90b ib_srpt: Remove no longer needed source files
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6448 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-30 17:10:11 +00:00
Bart Van Assche
7abcac7f22 ib_srpt, Makefile: Pass same flags to "make modules" and to "make install" (merge r6141 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6447 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-30 17:07:29 +00:00
Bart Van Assche
6b04a02d77 ib_srpt: Remove the now obsolete patches directory
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6446 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-30 17:06:37 +00:00
Bart Van Assche
de80d3152a ib_srpt: Enable building against OFED headers without patching the build system (merge r6138 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6445 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-30 17:05:43 +00:00
Bart Van Assche
eacbbbfa1c ib_srpt: Add missing kernel-doc comments (merge r6091 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6444 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-30 17:03:21 +00:00
Bart Van Assche
cdee6ec4bf ib_srpt: Clarify a log message (merge r6026 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6443 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-30 17:01:58 +00:00
Bart Van Assche
49d83c4880 ib_srpt: Remove an obsolete comment (merge r6022 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6442 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-30 17:01:27 +00:00
Bart Van Assche
1f21e75fe2 ib_srpt: Clean up header file ib_srpt.h (merge r6021 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6441 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-30 17:00:55 +00:00
Bart Van Assche
bf2006c250 ib_srpt: Document #endif CONFIG_SCST_PROC statements (merge r6020 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6440 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-30 17:00:20 +00:00
Bart Van Assche
c9932f2f58 ib_srpt: Remove emacs local variables (merge r6019 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6439 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-30 16:59:47 +00:00
Bart Van Assche
2e1dc2332b ib_srpt: Detect Mellanox OFED 2.3 correctly (merge r5990 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6438 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-30 16:59:08 +00:00
Bart Van Assche
8aa7eeda93 ib_srpt: Fix "make clean" (merge r6203 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6437 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-30 16:52:36 +00:00
Bart Van Assche
ef830f9335 ib_srpt: Avoid that aborting a command triggers a race condition (merge r6181 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6182 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-04-10 17:18:22 +00:00
Vladislav Bolkhovitin
fc51102b1a Boost version numbers
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6143 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-03-11 04:26:28 +00:00
Bart Van Assche
8330f4c911 Version: Update from 3.0.0 into 3.0.1
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6122 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-23 13:47:41 +00:00
Bart Van Assche
1c17224d12 Version: Update from 3.0.0 into 3.0.1
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6117 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-23 13:12:02 +00:00
Vladislav Bolkhovitin
e565cbce6e Merged revisions 5955,5959-5961,5965 via svnmerge from
svn+ssh://vlnb@svn.code.sf.net/p/scst/svn/trunk

........
  r5955 | bvassche | 2014-12-22 05:10:41 -0800 (Mon, 22 Dec 2014) | 1 line
  
  Update for kernel 3.18
........
  r5959 | bvassche | 2015-01-06 05:25:28 -0800 (Tue, 06 Jan 2015) | 1 line
  
  scst_calc_block_shift: Log block shift and sector size upon mismatch
........
  r5960 | bvassche | 2015-01-07 01:20:06 -0800 (Wed, 07 Jan 2015) | 4 lines
  
  scst_local: Fix unique per session sas address
  
  Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
........
  r5961 | bvassche | 2015-01-09 04:23:25 -0800 (Fri, 09 Jan 2015) | 4 lines
  
  scst_sysfs: return EINVAL on too big LUN
  
  Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
........
  r5965 | bvassche | 2015-01-13 00:55:46 -0800 (Tue, 13 Jan 2015) | 68 lines
  
  qla2x00t: Copy entire SCST sense buffer to q2x ctio
  
  There seems to be a bug in passing sense information to QLA HBAs, where 
  the last 2 bytes of the sense data (ASC, ASCQ) are not copied to the low 
  level sense buffer.
  We encountered this in ESX, which relies on these 2 bytes to parse the 
  MISCOMPARE sense code (0xE1, 0x1D, 0x00).
  Bellow is a simple test to recreate this issue, but during vMotion 
  operations (where VMs are moved from one host to another), this may 
  cause the operation to fail leaving the VM in an inconsistent state.
  
  The test I ran to verify that we are indeed missing the bytes is the 
  following:
  1. Create a SCST based device
  2. Expose the device to 2 ESX hosts
  3. Format the device as VMFS5, create a test directory
  4. From both hosts, I start writing to this directory (no VMs involved, 
  just write normal files)
  
  At this stage, both ESX hosts try to take access to the directory.
  The VMFS filesystem contains a per-directory lock which is managed by 
  COMPARE AND WRITE command.
  Each ESX will attempt to change the VMFS lock location from unlocked to 
  locked to create the new file.
  
  Obviously there are bound to be failures (which are equivalent to 
  programming locking conflicts), these are reported by the MISCOMPARE 
  sense code.
  Upon these MISCOMPARE errors, the host will re-try taking the lock until 
  it succeeds, and will then proceed to perform the write operation on the 
  directory.
  
  Due to the bug in copying the sense buffer from the SCST core to the QLA 
  ctio, instead of the full sense code, only the key (0xE) is sent, and 
  ESX does not know how to handle it resulting in IO error.
  
  Here are the errors as they appear on the command line:
  /vmfs/volumes/54a297c4-ca5af1cc-7f94-002219d20f28/ats_test # 
  ./open_close_test-esx2.sh
  ./open_close_test-esx2.sh: line 8: can't create 
  ats_fileoptest-esx2_1.txt: Input/output error
  ./open_close_test-esx2.sh: line 8: can't create 
  ats_fileoptest-esx2_21.txt: Input/output error
  ./open_close_test-esx2.sh: line 8: can't create 
  ats_fileoptest-esx2_110.txt: Input/output error
  ./open_close_test-esx2.sh: line 8: can't create 
  ats_fileoptest-esx2_111.txt: Input/output error
  
  In the /var/log/vmkernel.log, we can see that the sense information is 
  missing (0xE, 0x0, 0x0) instead of (0xE, 0x1D, 0x0).
  2014-12-30T12:13:20.714Z cpu6:33519)ScsiDeviceIO: 2338: 
  Cmd(0x412e84f957c0) 0x89, CmdSN 0x234d from world 519051 to dev 
  "eui.0024f400d5020007" failed H:0x0 D:0x2 P:0x0 Valid sense data: 0xe 0x0 0x0.
  2014-12-30T12:13:20.766Z cpu6:33519)ScsiDeviceIO: 2338: 
  Cmd(0x412e84f91d00) 0x89, CmdSN 0x2350 from world 519051 to dev 
  "eui.0024f400d5020007" failed H:0x0 D:0x2 P:0x0 Valid sense data: 0xe 0x0 0x0.
  2014-12-30T12:13:20.766Z cpu6:33519)ScsiDeviceIO: 2338: 
  Cmd(0x412e80449fc0) 0x89, CmdSN 0x234f from world 519051 to dev 
  "eui.0024f400d5020007" failed H:0x0 D:0x2 P:0x0 Valid sense data: 0xe 0x0 0x0.
  
  This patch fixes this issue, the test will run without a problem with the
  fix (no IO errors, all the files are properly written to the directory).
  
  Signed-off-by: Shahar Salzman <shahar.salzman@kaminario.com>
  Reviewed-by: Eran Mann <eran.mann@kaminario.com>
  [bvanassche: simplified implementation]
  Signed-off-by: Bart Van Assche <bvanassche@acm.org>
........


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6110 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-02-21 04:10:37 +00:00
Bart Van Assche
d8da2ff95d ib_srpt: Speed up kernel driver unloading after a cable pull (merge r5727 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@5921 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-12-05 10:57:03 +00:00
Bart Van Assche
1871ca8abc Add kernel 3.17 build infrastructure (merge r5883 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@5907 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-12-03 17:13:06 +00:00
Bart Van Assche
ef69510af0 ib_srpt: Make "make -j<n> install" work for n >= 2 if "make all" has not been run first (merge r5806 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@5807 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-15 12:32:02 +00:00
Bart Van Assche
941e51b727 ib_srpt: Version 3.0.0
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@5768 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-04 12:45:59 +00:00
Bart Van Assche
d15786cd33 ib_srpt: Kernel 3.17 build fix (merge r5725 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@5749 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-03 09:19:07 +00:00
Bart Van Assche
89d1800244 Add kernel 3.16 nightly build infrastructure (merge r5719 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@5748 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-03 09:17:39 +00:00
Bart Van Assche
0b47e7bf41 srpt/Makefile: SLES + Mellanox OFED build fix (merge r5679:5681 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@5747 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-03 09:14:20 +00:00
Bart Van Assche
a41e4ea1b5 srpt/README: Fix SLES patch instructions (merge r5682 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@5746 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-03 09:12:08 +00:00
Bart Van Assche
99100ec2a1 nightly build: Add kernel 3.15 build infrastructure (merge r5611 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@5636 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-29 05:25:55 +00:00
Bart Van Assche
1c4fb8e1e6 ib_srpt: Set SCSI residual fields in SRP_CMD reply (merge r5622 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@5635 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-29 05:24:11 +00:00
Bart Van Assche
87e512601a Skip "depmod" while building an RPM (merge r5612 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@5634 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-29 05:22:58 +00:00
Bart Van Assche
34a56ef337 ib_srpt: Remove existing ib_srpt.ko kernel modules before installation (merge r5621, r5628 and r5630 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@5633 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-29 05:20:31 +00:00
Bart Van Assche
37ef0a30ee ib_srpt: Merge from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@5599 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-13 06:59:13 +00:00
Bart Van Assche
68489e57f9 ib_srpt: Merge build and login fixes from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@5580 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-11 14:33:30 +00:00
Vladislav Bolkhovitin
f7bd8e034b Merged revisions 5543,5545 via svnmerge from
svn+ssh://vlnb@svn.code.sf.net/p/scst/svn/trunk

........
  r5543 | bvassche | 2014-05-23 00:33:53 -0700 (Fri, 23 May 2014) | 1 line
  
  RHEL 7 build fixes
........
  r5545 | bvassche | 2014-05-23 01:36:36 -0700 (Fri, 23 May 2014) | 1 line
  
  scripts/rebuild-rhel-kernel-rpm: Add RHEL 7 RC support
........


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@5565 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-04 03:12:05 +00:00
Bart Van Assche
909abff111 ib_srpt: Source code comment spelling fix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5518 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-05-12 15:56:45 +00:00
Bart Van Assche
d3d094d160 ib_srpt: Fix two recently introduced checkpatch complaints about whitespace
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5498 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-30 05:30:45 +00:00
Bart Van Assche
424b231e96 ib_srpt: Make LUN masking work again
This patch fixes a regression that was introduced in r5493.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5495 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-29 12:39:50 +00:00
Bart Van Assche
607487caca ib_srpt, README: Fix RDMA/CM login instructions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5494 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-29 12:35:41 +00:00
Bart Van Assche
6cbe580d89 ib_srpt: Unload properly with RDMA/CM disabled
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5474 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-24 18:43:41 +00:00
Bart Van Assche
99b7abe259 ib_srpt, Makefile: Introduce the OFED_KERNEL_DIR variable
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5473 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-24 12:27:00 +00:00
Bart Van Assche
eae0318512 ib_srpt: Make srpt_disconnect_ch() close sessions properly that have not yet reached the connected state
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5472 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-24 11:11:26 +00:00
Bart Van Assche
cd0dcb32ab ib_srpt: Add support in the Makefile for MLNX OFED and for OFED 3.x
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5471 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-24 10:38:37 +00:00
Bart Van Assche
a4a01d6675 ib_srpt: OFED 3.12 build fix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5470 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-24 10:37:58 +00:00