Commit Graph

4859 Commits

Author SHA1 Message Date
Vladislav Bolkhovitin
ffdfa708e6 Merged revisions 6724,6728 via svnmerge from
svn+ssh://vlnb@svn.code.sf.net/p/scst/svn/trunk

........
  r6724 | bvassche | 2015-12-09 11:18:01 -0800 (Wed, 09 Dec 2015) | 24 lines
  
  scst_main: Fix wait_event() call in scst_unregister_target()
  
  Avoid that the following kernel warning gets triggered:
  
  WARNING: CPU: 3 PID: 12967 at kernel/sched/core.c:7287 __might_sleep+0x7a/0x90()
  do not call blocking ops when !TASK_RUNNING; state=2 set at [<ffffffff81097cfe>] prepare_to_wait_event+0x5e/0xf0
  CPU: 3 PID: 12967 Comm: scst_uid Tainted: G           O    4.0.0-debug+ #1
  Call Trace:
   [<ffffffff815f11cb>] dump_stack+0x4c/0x65
   [<ffffffff81053930>] warn_slowpath_common+0x80/0xc0
   [<ffffffff810539b1>] warn_slowpath_fmt+0x41/0x50
   [<ffffffff81079c1a>] __might_sleep+0x7a/0x90
   [<ffffffff815f5d4a>] mutex_lock_nested+0x2a/0x4d0
   [<ffffffffa035330a>] test_sess_list+0x1a/0x40 [scst]
   [<ffffffffa0355b1e>] scst_unregister_target+0x26e/0x380 [scst]
   [<ffffffffa01f6c86>] __scst_local_remove_target+0xc6/0x160 [scst_local]
   [<ffffffffa01f6ddc>] scst_local_sysfs_del_target+0xbc/0x1b0 [scst_local]
   [<ffffffffa038b315>] scst_process_tgtt_mgmt_store+0x205/0x300 [scst]
   [<ffffffffa038b424>] scst_tgtt_mgmt_store_work_fn+0x14/0x20 [scst]
   [<ffffffffa038cc1d>] scst_process_sysfs_works+0xbd/0x1f0 [scst]
   [<ffffffffa038ce0d>] sysfs_work_thread_fn+0xbd/0x310 [scst]
   [<ffffffff81073d33>] kthread+0xf3/0x110
   [<ffffffff815faf18>] ret_from_fork+0x58/0x90
........
  r6728 | vlnb | 2015-12-10 17:51:31 -0800 (Thu, 10 Dec 2015) | 3 lines
  
  scst: small addition to r6724
........


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.1.x@6729 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-11 01:52:56 +00:00
Vladislav Bolkhovitin
a85225d5a3 Merged revisions 6703-6718,6720-6721 via svnmerge from
svn+ssh://vlnb@svn.code.sf.net/p/scst/svn/trunk

........
  r6703 | bvassche | 2015-11-19 08:53:18 -0800 (Thu, 19 Nov 2015) | 5 lines
  
  scst_sysfs: Introduce scst_parse_add_repl_param()
  
  This makes the __scst_process_luns_mgmt_store() source code slightly
  easier to read.
........
  r6704 | bvassche | 2015-11-19 09:30:24 -0800 (Thu, 19 Nov 2015) | 1 line
  
  scripts/run-regression-tests: Also test no-DLM build
........
  r6705 | bvassche | 2015-11-19 09:31:02 -0800 (Thu, 19 Nov 2015) | 1 line
  
  scst: Fix procfs build
........
  r6706 | bvassche | 2015-11-19 09:48:18 -0800 (Thu, 19 Nov 2015) | 1 line
  
  scst: More procfs build fixes. See also r6694.
........
  r6707 | bvassche | 2015-11-20 13:47:57 -0800 (Fri, 20 Nov 2015) | 5 lines
  
  scst_local: Linux kernel v4.4 build fix
  
  Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
  [ bvanassche: Merged the two #if-statements into a single #if-statement ]
........
  r6708 | bvassche | 2015-11-20 15:23:48 -0800 (Fri, 20 Nov 2015) | 2 lines
  
  /etc/init.d/scst: Suppress rmmod error messages
........
  r6709 | bvassche | 2015-11-20 16:19:04 -0800 (Fri, 20 Nov 2015) | 5 lines
  
  scstadmin: Improve copy manager support
  
  Add support for saving and restoring copy manager attributes.
........
  r6710 | bvassche | 2015-11-22 11:49:18 -0800 (Sun, 22 Nov 2015) | 4 lines
  
  qla2x00t: Fix a few typos
  
  Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
........
  r6711 | bvassche | 2015-11-22 12:03:29 -0800 (Sun, 22 Nov 2015) | 7 lines
  
  mpt: Include header file mptbase.h without path
  
  Allow include path modification with LSI_INC_DIR.
  
  Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
........
  r6712 | bvassche | 2015-11-23 15:04:57 -0800 (Mon, 23 Nov 2015) | 4 lines
  
  scstadmin: Improve copy manager support further
  
  Also restore pass-through LUNs
........
  r6713 | bvassche | 2015-11-23 15:05:24 -0800 (Mon, 23 Nov 2015) | 2 lines
  
  scstadmin: Make regression test 6 pass
........
  r6714 | bvassche | 2015-11-25 09:28:02 -0800 (Wed, 25 Nov 2015) | 6 lines
  
  usr/fileio: Build fix for Ubuntu 15.10
  
  Ubuntu 15.10 includes Linux kernel 4.2 but does not define
  SERVICE_ACTION_IN_16 in the <scsi/scsi.h> glibc header. Hence
  provide a definition in scst_const.h.
........
  r6715 | bvassche | 2015-11-27 20:39:57 -0800 (Fri, 27 Nov 2015) | 1 line
  
  scst-const.h: Follow-up for r6714
........
  r6716 | bvassche | 2015-12-02 08:57:45 -0800 (Wed, 02 Dec 2015) | 1 line
  
  scst: Rename the PR-sync document to avoid filenames with spaces in the SCST tree
........
  r6717 | bvassche | 2015-12-02 14:59:33 -0800 (Wed, 02 Dec 2015) | 1 line
  
  scstadmin: Ensure that -no_lip takes effect for all SCST configuration commands
........
  r6718 | bvassche | 2015-12-03 16:31:40 -0800 (Thu, 03 Dec 2015) | 1 line
  
  nightly build: Update kernel versions
........
  r6720 | vlnb | 2015-12-07 19:44:51 -0800 (Mon, 07 Dec 2015) | 3 lines
  
  docs: fix (extra)clean brocken by r6716
........
  r6721 | vlnb | 2015-12-07 19:51:01 -0800 (Mon, 07 Dec 2015) | 3 lines
  
  Cleanup
........


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.1.x@6722 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-08 03:58:10 +00:00
Vladislav Bolkhovitin
9174680ae4 Fix svnmerge URL
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.1.x@6719 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-08 03:37:59 +00:00
Vladislav Bolkhovitin
e35e79706e Merged revisions 6693-6701 via svnmerge from
svn://svn.code.sf.net/p/scst/svn/trunk

........
  r6693 | vlnb | 2015-11-17 19:59:30 -0800 (Tue, 17 Nov 2015) | 5 lines
  
  scst: Add user space control for suspend/resume activities
  
  Useful to speed up mass management
........
  r6694 | vlnb | 2015-11-17 20:09:50 -0800 (Tue, 17 Nov 2015) | 6 lines
  
  scst: Rework Copy Manager's sysfs interface
  
  The old version had management incompatible with scstadmin and had
  issues with LUNs management.
........
  r6695 | bvassche | 2015-11-18 11:36:01 -0800 (Wed, 18 Nov 2015) | 8 lines
  
  scst: Make it easier to build without DLM support
  
  With this change all that is required to build without DLM support
  is to add the following in scst_priv.h:
  
  #undef CONFIG_DLM
  #undef CONFIG_DLM_MODULE
........
  r6696 | bvassche | 2015-11-18 14:10:03 -0800 (Wed, 18 Nov 2015) | 2 lines
  
  scst_pres: Suppress a compiler warning when building against a kernel with no DLM support
........
  r6697 | bvassche | 2015-11-18 14:10:33 -0800 (Wed, 18 Nov 2015) | 1 line
  
  scst_vdisk: Kernel v4.4 build fix
........
  r6698 | bvassche | 2015-11-18 14:10:54 -0800 (Wed, 18 Nov 2015) | 1 line
  
  ib_srpt: Kernel v4.4 build fix
........
  r6699 | bvassche | 2015-11-18 14:11:37 -0800 (Wed, 18 Nov 2015) | 1 line
  
  isert-scst: Port to Linux kernel v4.4
........
  r6700 | bvassche | 2015-11-18 14:44:29 -0800 (Wed, 18 Nov 2015) | 1 line
  
  scst: Do not build cluster PR support if CONFIG_SCST_NO_DLM has been set
........
  r6701 | vlnb | 2015-11-18 21:20:43 -0800 (Wed, 18 Nov 2015) | 3 lines
  
  scst: fix explicit ALUA disabled DIF type 2 handling
........


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.1.x@6702 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-19 05:21:59 +00:00
Vladislav Bolkhovitin
7a043f2618 Merged revisions 6682-6691 via svnmerge from
svn://svn.code.sf.net/p/scst/svn/trunk

........
  r6682 | bvassche | 2015-11-12 09:43:26 -0800 (Thu, 12 Nov 2015) | 1 line
  
  scst_copy_mgr: Fix indentation
........
  r6683 | bvassche | 2015-11-12 10:26:26 -0800 (Thu, 12 Nov 2015) | 8 lines
  
  qla2x00t: Suppress a Coverity complaint about a potential buffer overflow
  
  Coverity reported the following:
  
  Copy into fixed size buffer (STRING_OVERFLOW)
  fixed_size_dest: You might overrun the 17 byte fixed-size string
  ha->model_number by copying def without checking the length.
........
  r6684 | bvassche | 2015-11-12 10:30:15 -0800 (Thu, 12 Nov 2015) | 1 line
  
  qla2x00t: Do not compare an array pointer with NULL
........
  r6685 | bvassche | 2015-11-12 10:30:42 -0800 (Thu, 12 Nov 2015) | 1 line
  
  qla2x00t: Use strlcpy() instead of strcpy()
........
  r6686 | bvassche | 2015-11-12 14:17:59 -0800 (Thu, 12 Nov 2015) | 4 lines
  
  scst_lib: Avoid using 64-bit divisions
  
  Reported-by: Sebastian Herbszt <herbszt@gmx.de>
........
  r6687 | vlnb | 2015-11-12 15:33:45 -0800 (Thu, 12 Nov 2015) | 3 lines
  
  Update the root README regarding QLogic target driver
........
  r6688 | bvassche | 2015-11-13 08:26:09 -0800 (Fri, 13 Nov 2015) | 8 lines
  
  scst: Fix kernel 2.6.36 build
  
  Avoid that compilation fails with the following error message:
  
  include/linux/slub_def.h:246: error: conflicting types for ‘kmalloc’
  include/scst/backport.h:458: error: implicit declaration of function ‘kmalloc’
........
  r6689 | bvassche | 2015-11-13 11:07:10 -0800 (Fri, 13 Nov 2015) | 7 lines
  
  scstadmin: Do not try to clear copy manager assignments
  
  This patch avoids that the following error message is displayed on the
  console while "/etc/init.d/scst start" is executed:
  
  scst: scst_cm_mgmt:3556:***ERROR***: Device copy_manager_tgt not found
........
  r6690 | bvassche | 2015-11-13 13:07:50 -0800 (Fri, 13 Nov 2015) | 1 line
  
  scstadmin: Leave out the copy manager from the driver list
........
  r6691 | bvassche | 2015-11-13 17:07:27 -0800 (Fri, 13 Nov 2015) | 4 lines
  
  scstadmin: Pass $PREFIX to Makefile.PL
  
  Signed-off-by: Alexey Mochkin <alukardd@alukardd.org>
........


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.1.x@6692 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-14 02:32:38 +00:00
Vladislav Bolkhovitin
408ae374ba Merged revisions 6596-6674,6679 via svnmerge from
svn+ssh://vlnb@svn.code.sf.net/p/scst/svn/trunk



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.1.x@6681 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-12 03:57:17 +00:00
Vladislav Bolkhovitin
ced1efb515 Follow up for r6678
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.1.x@6680 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-12 03:45:40 +00:00
Vladislav Bolkhovitin
47aeb04f45 Follow up for the previous commit
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.1.x@6678 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-12 03:40:43 +00:00
Vladislav Bolkhovitin
bf502ee8c3 Follow up for r6675
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.1.x@6677 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-12 03:36:37 +00:00
Vladislav Bolkhovitin
430acec9e0 Merged revisions 6595 via svnmerge from
svn://svn.code.sf.net/p/scst/svn/trunk

........
  r6595 | bvassche | 2015-11-06 09:36:46 -0800 (Fri, 06 Nov 2015) | 2 lines
  
  scst_dlm: Build fix for older kernels (2.6.32)
........


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.1.x@6676 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-12 02:54:37 +00:00
Vladislav Bolkhovitin
87b6729554 Initialized merge tracking via "svnmerge" with revisions "6591" from
svn://svn.code.sf.net/p/scst/svn/trunk


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.1.x@6675 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-12 02:50:33 +00:00
Vladislav Bolkhovitin
5773b2c3ec Version updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.1.x@6592 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 06:13:58 +00:00
Vladislav Bolkhovitin
cb404bab7d 3.1.x branch created
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.1.x@6591 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 06:10:36 +00:00
Vladislav Bolkhovitin
e00b83998f VAAI docs
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6590 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 04:01:29 +00:00
Vladislav Bolkhovitin
3fc775c75a EXTENDED COPY support
Prepared with help from Sushma Gurram <Sushma.Gurram@sandisk.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6589 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:58:00 +00:00
Vladislav Bolkhovitin
54cf21076a New COMPARE AND WRITE implementation
Prepared with help from Sushma Gurram <Sushma.Gurram@sandisk.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6588 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:56:48 +00:00
Vladislav Bolkhovitin
aff6012d44 Remove old COMPARE AND WRITE implementation
Prepared with help from Sushma Gurram <Sushma.Gurram@sandisk.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6587 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:55:35 +00:00
Vladislav Bolkhovitin
daee4dcb7e WRITE SAME command improvements
Prepared with help from Sushma Gurram <Sushma.Gurram@sandisk.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6586 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:54:23 +00:00
Vladislav Bolkhovitin
2b202209ca ALUA DRBD compatibility
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6585 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:52:52 +00:00
Vladislav Bolkhovitin
ecbe9d17a1 Serialize STPG commands
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6584 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:51:35 +00:00
Vladislav Bolkhovitin
55c46e4106 Delay SCSI commands in TRANSITIONING ALUA state to ease initiators load
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6583 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:50:37 +00:00
Vladislav Bolkhovitin
3636664071 Various SCST events producers
Prepared with help from Prasidh Srikanth <Prasidh.Srikanth@sandisk.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6582 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:49:14 +00:00
Vladislav Bolkhovitin
c619567bba SCST events sample user space consumer
Prepared with help from Prasidh Srikanth <Prasidh.Srikanth@sandisk.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6581 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:48:24 +00:00
Vladislav Bolkhovitin
a2556e2e01 svn:ignore added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6580 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:45:10 +00:00
Vladislav Bolkhovitin
ae38d284e0 Explicit ALUA user space
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6579 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:40:37 +00:00
Vladislav Bolkhovitin
2ecfcdc643 Improve logging
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6578 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:35:50 +00:00
Vladislav Bolkhovitin
9ce3d2989a Missed piece from the previous commit
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6577 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:31:04 +00:00
Vladislav Bolkhovitin
e50f240d33 Explicit ALUA support
Prepared with help from Prasidh Srikanth <Prasidh.Srikanth@sandisk.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6576 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:28:53 +00:00
Vladislav Bolkhovitin
2fdbaf0fae Devices external blocking support
Prepared with help from Prasidh Srikanth <Prasidh.Srikanth@sandisk.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6575 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:27:39 +00:00
Vladislav Bolkhovitin
297d268a7a SCST events infrastructure
Prepared with help from Prasidh Srikanth <Prasidh.Srikanth@sandisk.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6574 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:26:01 +00:00
Vladislav Bolkhovitin
9d61dc4b03 Cluster SCSI state sync support
From Bart Van Assche <Bart.VanAssche@sandisk.com>
Prepared with help from Pralay Dakua <Pralay.Dakua@sandisk.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6573 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:23:46 +00:00
Vladislav Bolkhovitin
5058156b26 Cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6572 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-05 04:03:20 +00:00
Bart Van Assche
87c1d45bf8 scst_targ: Report unsupported SELECT REPORT values with 0x prefix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6571 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-03 16:52:00 +00:00
Bart Van Assche
77baa86e0e qla2x00t: Source code comment spelling fix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6570 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-03 05:25:32 +00:00
Bart Van Assche
fc27595d07 nightly build: Add support files for kernel v4.3
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6569 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-03 05:24:37 +00:00
Bart Van Assche
75499d9cdb nightly build: Add kernel version 4.3
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6568 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-03 05:18:45 +00:00
Bart Van Assche
711e3c54a5 ib_srpt: Remove one_target_per_port parameter completely
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6567 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-02 22:44:48 +00:00
Bart Van Assche
a8ecf61074 isert: Rename a function
Signed-off-by: Ariel Nahum <arieln@mellanox.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6566 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-29 15:57:32 +00:00
Bart Van Assche
f7c023f3ef scst/README*: Remove trailing whitespace
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6565 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 22:02:42 +00:00
Bart Van Assche
6fff27d6d8 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6564 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 21:18:00 +00:00
Bart Van Assche
0a2cdd1f64 iscsi-scst/kernel/Makefile.in-kernel: Sort file names alphabetically
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6563 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 21:11:06 +00:00
Bart Van Assche
64984b964c scstadmin.spec: procfs build fix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6562 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 21:09:11 +00:00
Bart Van Assche
4a3ba74b67 scst_local, procfs: Kernel v4.3 build fix.
See also patch "fs/seq_file: convert int seq_vprint/seq_printf/etc...
returns to void" (commit ID 6798a8caaf64fa68b9ab2044e070fe4545034e03).


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6561 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 20:39:04 +00:00
Bart Van Assche
b5c5a3eb7e scst_vdisk: procfs build fix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6560 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 20:29:18 +00:00
Bart Van Assche
4938861aa2 scst: Move backports from scst.h to backport.h - step 2
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6559 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 20:22:57 +00:00
Bart Van Assche
4f4edc3f6f scst: Move backports from scst.h to backport.h - step 1
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6558 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 19:00:05 +00:00
Bart Van Assche
c8b2fd0808 scst.spec: Use QLogic target driver source code from the QLogic git tree if available
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6557 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 18:10:19 +00:00
Bart Van Assche
dad9e0317c list-source-files: Fix the behavior for processing soft links
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6556 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 18:09:04 +00:00
Bart Van Assche
1e9ec5d21a scst/include/backport.h: Install this header and include it in the RPM
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6555 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 17:24:23 +00:00
Bart Van Assche
46202aa823 isert: Fix null dereference in isert_cmnd allocation code
In a state where the list isert_conn->tx_free_list is empty
(mostly under traffic), we might fail to receive a command from
the isert command pool. This will result in later null deref.

In this case, busy-wait until a command will be available (will
be freed by the receive context).

[2158233.952087] BUG: unable to handle kernel NULL pointer dereference at (null)
[2158233.956023] IP: [<ffffffffa04e14d0>] isert_pdu_send+0xc0/0x1f0 [isert_scst]
....
[2158233.956023]  [<ffffffffa04d98c8>] ? isert_cmnd_alloc+0x78/0x110 [isert_scst]
[2158233.956023]  [<ffffffffa045b5a0>] req_cmnd_release+0x50/0x130 [iscsi_scst]
[2158233.956023]  [<ffffffffa04622cb>] iscsi_send_nop_in+0x19b/0x370 [iscsi_scst]

Signed-off-by: Ariel Nahum <arieln@mellanox.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6554 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-28 16:55:48 +00:00