Commit Graph

4360 Commits

Author SHA1 Message Date
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
Bart Van Assche
ad45c75be5 scst.h: Make vzalloc() available on RHEL 6.0
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5752 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-03 10:47:16 +00:00
Bart Van Assche
a0cc1707a1 scst: Build fix for hex_to_bin() for RHEL 6.1 and later
Reported-by: Yan Burman <yanb@mellanox.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5751 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-03 10:23:51 +00:00
Bart Van Assche
f9a3493c32 scripts/generate-patched-kernel: Fix for invocation from current directory
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5745 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-02 06:35:06 +00:00
Bart Van Assche
b989c92b9a scripts/rebuild-rhel-kernel-rpm: Fix for invocation from current directory
Reported-by: Hiroyuki Sato <hiroysato@gmail.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5744 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-02 06:33:32 +00:00
Vladislav Bolkhovitin
4aa8ab7be0 scst_lib: Fix READ POSITION parsing
For code 08h (EXTENDED FORM) minimal response length is 32, see table
"READ POSITION data format, extended form". In SSC-[2,3] table "READ
POSITION service action codes" requests minimum response lenght 28
bytes, but it is an apparent typo, because the actual data format is 32
bytes long. In SSC-4 it is fixed.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5740 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-28 01:26:11 +00:00
Bart Van Assche
1a52f22256 scst_vdisk: Build fix for kernel 3.1.x
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5737 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-27 06:33:02 +00:00
Vladislav Bolkhovitin
5f14ef7a10 scst/include/scst.h: Document on_abort_cmd() further
Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5736 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-27 03:00:44 +00:00
Vladislav Bolkhovitin
9c2fb52429 iscsi-scst: Micro-optimize cmnd_prepare_recv_pdu()
Instead of adding sg[idx].offset to addr and immediately subtracting
sg[idx].offset again, leave out both arithmetic operations.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5735 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-27 02:55:28 +00:00
Vladislav Bolkhovitin
760b71423a scst: Remove set_cpus_allowed() invocations
Since scst.h contains a backport of the definition of set_cpus_allowed_ptr(),
the set_cpus_allowed() invocations are superfluous. Hence remove these.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5734 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-27 02:43:50 +00:00
Vladislav Bolkhovitin
0cb3147ba6 scst_pres: Make a few error messages more clear
Make it possible to figure out what went wrong from inspecting the
system log only by mentioning the incorrect filename in the system
log.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5733 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-27 02:42:35 +00:00
Vladislav Bolkhovitin
87c6bba994 iscsi-scst: Build fix for IPV6=n
Ensure that iscsi-scst builds properly against a kernel with CONFIG_IPV6=n.

Reported by Igor Novgorodov <igor@novg.net> on June 7, 2014.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5732 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-27 02:41:40 +00:00
Bart Van Assche
369a8fb306 scstadmin: Avoid that the Perl interpreter prints a warning message about using an undefined variable on Fedora systems
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5731 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-26 09:56:54 +00:00
Vladislav Bolkhovitin
dcd1f6b3cd scst_vdisk: Make EUI-64 and NAA IDs configurable
Make the SCSI device identification page (83h) EUI-64 and NAA
IDs configurable. If neither the eui64_id nor the naa_id sysfs
attribute has been set, export the first eight bytes of the
t10_dev_id as an EUI-64 ID. If the NAA ID but not the EUI-64 ID
has been set, report the NAA ID only. If both IDs have been set,
report both.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5730 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-26 03:44:23 +00:00
Vladislav Bolkhovitin
c6e5553797 scst_vdisk: Make vdisk_sup_vpd() easier to extend
This patch doesn't change any functionality.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5729 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-26 03:21:07 +00:00
Bart Van Assche
7061a6ee8d ib_srpt: Make the completion vector configurable
Allow a set of completion vectors to be associated with each InfiniBand
HCA port and allocate the completion vector for each session in a
round-robin fashion from the per-port set. This helps to spread the
InfiniBand interrupt workload over multiple CPU's, at least if different
InfiniBand MSI-X vectors are associated with different CPU's.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5728 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-08-25 12:50:19 +00:00