Commit Graph

4375 Commits

Author SHA1 Message Date
Bart Van Assche
4e645536a2 ib_srpt: Add support for HCA's that do not support SRQ
Based on a patch provided by Parav Pandit <Parav.Pandit@Emulex.Com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5881 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-24 17:59:14 +00:00
Bart Van Assche
51834ae6bb nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5880 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-22 11:12:29 +00:00
Bart Van Assche
bfaad5fabf scripts/generate-release-archive: Accept an optional list of file names
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5879 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-19 00:20:20 +00:00
Bart Van Assche
dd5561c93a srpt/Makefile: Add double quotes around a path
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5878 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-19 00:17:41 +00:00
Bart Van Assche
0501afbc6c nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5875 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-16 17:58:07 +00:00
Vladislav Bolkhovitin
d698f6c1bd Report RX data digest failures by default
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5856 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-15 01:55:27 +00:00
Vladislav Bolkhovitin
e03561da68 Ease severity of reporting unsupported REPORT LUNS SELECT REPORT value
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5855 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-15 01:44:06 +00:00
Bart Van Assche
d163d91f9f nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5854 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-01 08:30:20 +00:00
Bart Van Assche
51767a2239 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5853 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-10-24 07:12:39 +00:00
Bart Van Assche
23bfab0626 iscsi-scst: Make iscsi_thread_pool locking more fine-grained
Protect iscsi_thread_pool.threads_list via tp_mutex instead of
scst_mutex.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5852 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-10-18 08:56:23 +00:00
Vladislav Bolkhovitin
827e5b1461 scst, iscsi-scst: Add thread_pid attribute
For SCST devices with a short name determining which SCST command
threads serve a given LUN requires an (expensive) walk of the
process table. For SCST devices with a long name it is not possible
to determine unambiguously which command threads serve a given
LUN. Hence add a thread_pid sysfs attribute that makes it easy to
figure out which command threads serve a LUN.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5851 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-10-17 02:35:01 +00:00
Vladislav Bolkhovitin
a17fde27f9 scst/README: Document the lun<X> sysfs attributes
The sessions/<sess>/lun<X> sysfs attribute "active_commands" is not
yet documented. Hence add documentation for that sysfs attribute.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5850 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-10-17 02:32:28 +00:00
Vladislav Bolkhovitin
6ae28a0494 scst_vdisk, MODE SELECT(10): Interpret both bytes of the BLOCK DESCRIPTOR LENGTH field
While the BLOCK DESCRIPTOR LENGTH field spans a single byte in the
Mode parameter header(6), the size of this field in the Mode parameter
header(10) is two bytes. Interpret both bytes while executing a MODE
SELECT(10) command.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5849 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-10-17 02:30:12 +00:00
Vladislav Bolkhovitin
07e56dc160 scst_vdisk: Reduce number of casts
Since 'address' points at kernel space memory, change its type
from uint8_t __user * into uint8_t *. This change reduces the
number of casts between uint8_t __user * to uint8_t * in
fileio_exec_write().

This patch does not change any functionality.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5848 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-10-17 02:24:07 +00:00
Vladislav Bolkhovitin
f2fd09d3b2 scst_vdisk: Remove a superfluous cast
The 'iov_base' member of 'struct iovec' is declared in
<uapi/linux/uio.h> with type 'void __user *'. Adding an integer
to a void pointer has the same effect as adding an integer to
a char pointer in the C language. This means that it is safe to
remove the cast in front of the eiv->iov_base pointer.

Please note that a similar construct already exists in the iSCSI
target driver. From the nthread.c source file:

			iop->iov_base += rest;
			iop->iov_len -= rest;

This patch does not change any functionality.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5847 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-10-17 02:22:23 +00:00
Vladislav Bolkhovitin
5e5d9a8164 iSER web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5844 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-10-17 02:13:17 +00:00
Bart Van Assche
12607e88ca nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5835 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-10-10 16:36:59 +00:00
Bart Van Assche
4f2d8c5ecc nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5834 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-10-10 16:36:24 +00:00
Bart Van Assche
a9f9a3fd75 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5833 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-10-07 06:02:20 +00:00
Bart Van Assche
e706313fc6 scst_mem: Fix a memory leak triggered by the scst_user driver
Avoid that the following memory leak can occur:
- sgv_pool_alloc() is called with SGV_POOL_RETURN_OBJ_ON_ALLOC_FAIL
  set, with neither SGV_POOL_NO_ALLOC_ON_CACHE_MISS nor
  SGV_POOL_ALLOC_NO_CACHED set and with 'size' such that
  sgv_max_local_pages < pages_to_alloc <= pool->max_cached_pages.
- sgv_get_obj() and sgv_alloc_arrays() succeed.
- sgv_alloc_sg_entries() fails.
- sgv_get_obj() returns the SGV object with no buffers.
- A call to sgv_pool_free() adds this object to the recycle list.
- sgv_pool_alloc() is called a second time with the same parameters.
- sgv_get_obj() retrieves the object that was previously added to
  the recycle list.
- sgv_alloc_arrays() is called and overwrites the obj->sg_entries
  pointer although it still points at allocated memory, resulting
  in a memory leak.

Reported-by: Shahar Salzman <shahar.salzman@kaminario.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5829 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-10-03 12:26:14 +00:00
Bart Van Assche
d4c49fcd64 scripts/generate-kernel-patch: Only generate scst_itf_ver.h if needed
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5827 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-10-03 12:23:34 +00:00
Vladislav Bolkhovitin
c9bee3e309 Small doc improvements
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5821 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-10-02 03:19:10 +00:00
Bart Van Assche
daa3c9a075 scst_local: Restore support for detecting LUN 16383 via a sequential scan
Reported-by: Sebastian Herbszt <herbszt@gmx.de>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5820 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-30 11:07:38 +00:00
Bart Van Assche
092eeda59f scripts/rebuild-rhel-kernel-rpm: Enable put_page_callback patch for RHEL 7
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5817 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-28 19:54:04 +00:00
Vladislav Bolkhovitin
554511a800 Web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5816 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-20 06:31:43 +00:00
Bart Van Assche
a424396464 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5814 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-18 07:08:49 +00:00
Bart Van Assche
c132ee1721 vdisk_blockio: Make large COMPARE AND WRITE requests work for stacked block devices
Stacked block devices impose weird restrictions on S/G-lists. Hence
make the COMPARE AND WRITE implementation independent of these
restrictions.
    
Additionally, reduce the MAXIMUM COMPARE AND WRITE LENGTH limit from
0xff (no limit) to 0xfe to reduce the maximum amount of memory allocated
during a COMPARE AND WRITE. Also serialize COMPARE AND WRITE
operations, fix the offset reported for miscompares and fix the start
offset of the region that is synchronized if the FUA bit has been set.
    
Reported-by: Vishal Tripathi <vishal.tripathi@calsoftinc.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5811 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-17 10:56:40 +00:00
Bart Van Assche
392a14a7aa scst_vdisk: Insert a blank line
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5810 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-17 10:54:25 +00:00
Bart Van Assche
0224d1b9c6 scst/src/Makefile: Make "make install" without prior "make" work
Avoid that MOD_VERS and MODS_VERS evaluate to an empty string.
    
Reported-by: Yan Burman <yanb@mellanox.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5808 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-16 11:06:00 +00:00
Bart Van Assche
3cff1e083f ib_srpt: Make "make -j<n> install" work for n >= 2 if "make all" has not been run first
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5806 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-15 12:30:43 +00:00
Vladislav Bolkhovitin
2ab7d53901 Update root README to use symlink instead of bind mount for QLogic git driver integration
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5805 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-13 01:37:12 +00:00
Vladislav Bolkhovitin
4d47326ab5 Web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5804 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-13 01:35:12 +00:00
Vladislav Bolkhovitin
78b169dc48 Fix autofinding SCST headers in fileio_tgt
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5802 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-13 01:13:29 +00:00
Bart Van Assche
bdbb2b0c46 fcst: Change version number from 0.3 into 3.1.0-pre
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5801 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-12 11:20:16 +00:00
Bart Van Assche
803ea9ef61 fcst/Makefile: Add release-archive target
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5798 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-12 11:16:35 +00:00
Bart Van Assche
811d599f3a ib_srpt: Update Subversion ignore lists
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5796 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-10 12:20:30 +00:00
Bart Van Assche
f4f568f884 ib_srpt: Add max_sge_delta kernel module parameter
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5795 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-10 12:18:09 +00:00
Bart Van Assche
7fd9a3af66 scstadmin test 06-cont-on-err.t: Filter out scstadmin version number
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5794 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-10 11:44:14 +00:00
Bart Van Assche
31bd7ef3c4 scstadmin: Sync saved configuration files
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5793 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-10 11:42:54 +00:00
Bart Van Assche
173fdd5f20 scst_local: Set max_id to 1
The value 0 is not valid for the max_id member of struct Scsi_Host.
    
Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5786 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-09 11:27:27 +00:00
Bart Van Assche
2452405735 scst_local: Change max_lun into SCST_MAX_LUN (16383)
Today SCST does not support LUN numbers >= 16384. Additionally,
there is a bug in older Linux initiator systems that prevents
proper handling of LUN numbers >= 2**32. See also Hannes Reinecke,
scsi_scan: Fixup scsilun_to_int(), June 25, 2014 (commit ID
d9e5d6183715e691b37afd3785c311d05cd1338d). Hence set max_lun to
16383.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5785 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-09 11:09:20 +00:00
Bart Van Assche
91a471747f nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5779 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-06 06:30:46 +00:00
Bart Van Assche
6e311fea7f ib_srpt: Bump driver version from 3.0.0-pre to 3.1.0-pre
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5769 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-04 12:56:48 +00:00
Bart Van Assche
c9c1c5598c scst_vdisk: Use parentheses around && inside ||
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5764 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-03 14:24:52 +00:00
Bart Van Assche
63810a1abb scst.h: Fix definition of __aligned()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5762 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-03 14:00:14 +00:00
Bart Van Assche
3d7ecc4fe3 scst.h: RHEL 5.10 build fix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5760 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-03 13:52:16 +00:00
Bart Van Assche
2cd5fb04fd scst.h: RHEL 5.10 build fix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5758 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-03 13:43:23 +00:00
Bart Van Assche
9249ca5414 scst_vdisk: Follow-up for r5754
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5755 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-03 11:00:55 +00:00
Bart Van Assche
d22823e037 scst_vdisk: RHEL 6.0 build fix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5754 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-03 10:58:03 +00:00
Bart Van Assche
811ff0f5a9 scst: Refine r5751, the hex_to_bin() build fix for RHEL >= 6.1
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5753 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-03 10:50:52 +00:00