Commit Graph

4393 Commits

Author SHA1 Message Date
Bart Van Assche
5ce36973f7 scripts/generate-kernel-patch: Swap two filters
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5910 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-12-04 11:50:58 +00:00
Bart Van Assche
7d8f7fe5bb scripts/rebuild-rhel-kernel-rpm: Add support for RHEL 6.6
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5905 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-12-03 17:07:31 +00:00
Bart Van Assche
8d518d8e33 iscsi-scst/kernel/patches/rhel/put_page_callback-2.6.32-504.patch: Add
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5904 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-12-03 17:06:57 +00:00
Bart Van Assche
6b8e075a4e scripts/rebuild-rhel-kernel-rpm: Fix an error message
Reported-by: Hiroyuki Sato <hiroysato@gmail.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5903 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-12-03 11:50:06 +00:00
Bart Van Assche
2c18cd82ed scst: Add scripts/rebuild-rhel-kernel-rpm to the SCST release archive
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5895 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-28 09:16:37 +00:00
Bart Van Assche
7507b77063 ib_srpt: Rework the max_sge computation changes from r5795
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5894 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-27 15:29:29 +00:00
Bart Van Assche
efa1a763a6 ib_srpt: Log reject reason
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5893 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-27 15:24:17 +00:00
Bart Van Assche
d51ecb0e2a ib_srpt: Add support for immediate data
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5892 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-27 15:19:21 +00:00
Bart Van Assche
1657c7db3b scst.h: Add uintptr_t
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5891 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-27 15:18:58 +00:00
Vladislav Bolkhovitin
a42056e75a Cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5890 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-27 04:36:33 +00:00
Bart Van Assche
e7e2e4e17c scripts/specialize-patch: Reduce noise in nightly build output
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5889 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-26 19:42:10 +00:00
Bart Van Assche
a41cf8bc0a scripts/specialize-patch: Support blanks around numbers inside parentheses
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5888 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-26 16:25:57 +00:00
Bart Van Assche
b37c988337 ib_srpt: Make the send queue full messages more informational
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5887 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-26 14:39:51 +00:00
Bart Van Assche
548ea345b5 Build fixes for RHEL 6.6 kernel 2.6.32-504
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5886 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-26 13:38:52 +00:00
Bart Van Assche
9707f85c0b Fix kernel 3.17 checkpatch warnings about 'long long unsigned'
Avoid that checkpatch reports the following warning:

WARNING: type 'long long unsigned' should be specified in 'unsigned long long' order.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5885 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-26 08:16:44 +00:00
Bart Van Assche
d8c750993d nightly build: Add kernel 3.17
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5884 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-26 08:07:08 +00:00
Bart Van Assche
2fb7c084d7 Add kernel 3.17 build infrastructure
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5883 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-26 08:05:09 +00:00
Vladislav Bolkhovitin
e13aa6622d Update for kernels 3.17.x
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5882 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-26 07:02:17 +00:00
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