Commit Graph

4403 Commits

Author SHA1 Message Date
Bart Van Assche
edcde67ddd ib_srpt: Log P_Key during login
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5935 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-12-11 12:37:02 +00:00
Bart Van Assche
331b72be46 scst_vdisk: Follow-up for r5932
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5934 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-12-11 12:31:03 +00:00
Vladislav Bolkhovitin
878a3be328 vdisk_blockio: Report invalid scatterlists
It is possible for a target driver to pass a scatterlist via
scst_cmd_set_tgt_sg() that is valid for the vdisk_fileio handler
but not for the vdisk_blockio handler. Complain loudly if an invalid
scatterlist is passed to vdisk_blockio because such scatterlists
cause silent data corruption with most Linux block drivers.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5933 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-12-11 04:38:04 +00:00
Vladislav Bolkhovitin
bba96aca8c scst_vdisk: Increase virtual device name length
This change makes integration with OpenStack easier since OpenStack GUIDs
are 36 characters long: 32 hex characters and four dashes.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5932 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-12-11 04:34:36 +00:00
Vladislav Bolkhovitin
10ebf80e7a Docs update
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5931 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-12-11 04:27:17 +00:00
Bart Van Assche
c641574046 rpm build: Add support for qla2x00t driver in QLogic git repository
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5929 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-12-09 12:33:16 +00:00
Vladislav Bolkhovitin
0d8b4dce6c Web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5928 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-12-06 05:02:27 +00:00
Vladislav Bolkhovitin
245b8b0e2b Oops, fix for the previous commit
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5914 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-12-04 23:43:51 +00:00
Vladislav Bolkhovitin
3dec4655b2 FORMAT commands should be strictly serialized
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5913 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-12-04 23:41:52 +00:00
Bart Van Assche
0717d99a62 /etc/init.d/scst: Exit with status code 0 upon 'start' if already running
Reported-by: Dimitar Tanev <dimitar@linuxdevgroup.org>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5912 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-12-04 12:19:56 +00:00
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