Commit Graph
696 Commits
Author SHA1 Message Date
Vladislav Bolkhovitin 3fc4071684 Merge of trunk r2201:
Fix race for last_sysfs_mgmt_res between management commands and read-only monitoring actions



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2202 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-23 13:35:33 +00:00
Vladislav Bolkhovitin 58a957b8c0 Merge of the trunk's r2136:
Docs updated



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2137 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-16 18:58:23 +00:00
Vladislav Bolkhovitin 5c7f79d3cc 2.0.0.x stable branch
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2091 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-10 14:16:00 +00:00
Vladislav Bolkhovitin 85aa336006 Fixes sparse failure on constructs like "char str[max(...)];", because it does not recognize expressions like
max(constant1, constant2) as a constant. Also, sizeof(string) + 1 reserves one byte too much: sizeof(string) does count the terminating zero byte.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2088 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-10 12:54:17 +00:00
Bart Van Assche c7c33ed5d7 Builds now agains the openSUSE 11.3 kernel headers too. OpenSUSE 11.3 has a 2.6.34 kernel with blkdev_issue_flush() backported from 2.6.35.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2086 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-10 08:08:34 +00:00
Bart Van Assche 58fe6226ce Only include the procfs headers when necessary.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2083 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-10 07:05:20 +00:00
Bart Van Assche 635996c45b Added Kconfig entry for scst_user. Excluded scst_user from the kernel build
when HIGHMEM4G or HIGHMEM64G is enabled.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2080 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-10 06:45:22 +00:00
Vladislav Bolkhovitin 8f1d1f1c1c Possible deadlocks with sysfs ref counting in sysfs works fixed (it is waiting for the last put, but
the last ref counter holder is waiting for scst_mutex).



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2078 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-09 20:20:36 +00:00
Bart Van Assche 89b35b8b9d Even more upstream include path conversions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2077 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-09 15:38:31 +00:00
Bart Van Assche 5b33692678 More upstream include path conversions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2076 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-09 15:27:54 +00:00
Bart Van Assche ec2712759f Un-break nightly build.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2072 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-09 13:57:30 +00:00
Bart Van Assche 5edde5ec25 Eliminated the include/scst include path from the upstream ib_srpt Makefile.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2071 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-09 09:46:18 +00:00
Bart Van Assche 9cade02e7a Reverted an accidentally committed change.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2066 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-07 07:33:44 +00:00
Bart Van Assche 91521a2dd2 Fixed sparse errors introduced in r2060.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2065 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-07 07:30:28 +00:00
Bart Van Assche e7cfb78543 Fixed a compiler warning that was introduced in r2057.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2062 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-07 07:06:04 +00:00
Vladislav Bolkhovitin c66ae1850e - get_transport_version() function changed to get target on entry
- transport versions propageted to user space handlers



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2061 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-06 21:45:48 +00:00
Vladislav Bolkhovitin 961d59ff40 - Version descriptors added
- Multi-transport support added to scst_local
 - Sysfs attributes "version" and "trace_level" added to scst_local



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2060 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-06 21:21:49 +00:00
Vladislav Bolkhovitin 036899aa9f GPL cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2057 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-06 13:48:15 +00:00
Vladislav Bolkhovitin 9963c18578 Fixes possible crashes on threads management. Issue with volatile bool noticed by Bart Van Assche <bvanassche@acm.org>, great thanks!
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2052 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-04 17:16:08 +00:00
Vladislav Bolkhovitin 0679e4e7a1 Get rid of the checkpatch warning about including <asm/uaccess.h>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2051 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-04 13:29:36 +00:00
Vladislav Bolkhovitin 4fb1e2527c Fix confusion between CONFIG_DEBUG_SG and CONFIG_SCST_DEBUG_TM noticed by Bart Van Assche <bvanassche@acm.org>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2050 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-04 13:27:04 +00:00
Vladislav Bolkhovitin c0ab5d3b89 Make r2048 more nice.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2049 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-04 13:22:56 +00:00
Vladislav Bolkhovitin 38f2e60dfd Fix for an endianness warning reported by sparse
Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2048 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-04 11:55:43 +00:00
Vladislav Bolkhovitin 8be87129c4 Fix possible crash in scst_sched_session_free() because sess got while it's being destroyed after its recf counter already reached 0. To pre
vent that it's better to take reference to sess_kobj instead.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2044 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-03 19:33:37 +00:00
Bart Van Assche 272adb5363 Fixes for recently introduced minor checkpatch and sparse complaints.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2042 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-03 16:53:31 +00:00
Vladislav Bolkhovitin d36e8ba654 Make sysfs default
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2041 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-03 16:47:51 +00:00
Vladislav Bolkhovitin 716107a964 Docs updates before making the sys interface default
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2039 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-03 16:38:19 +00:00
Vladislav Bolkhovitin 95f713444e Some scst_local cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2024 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-30 20:58:20 +00:00
Vladislav Bolkhovitin 3c434ad40e Alignment cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2023 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-30 20:37:45 +00:00
Vladislav Bolkhovitin 94d701bdfa Let's do it in a more safe way
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2021 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-30 12:06:54 +00:00
Vladislav Bolkhovitin 2a973f0df5 Fixes recently reported problems:
- Possible crash on errors recovery in user space devices registration
 - Wrong handling of virtual devices with names looking similar to names of pass-through devices
 - Fix possible crash in scst_del_threads()

+ some other fixes and cleanups



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2017 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-28 12:38:52 +00:00
Vladislav Bolkhovitin 023b65bafb Minor fixes and improvements
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2015 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-27 12:36:10 +00:00
Vladislav Bolkhovitin 9a1870d7df Latency statistics sysfs output added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2010 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-26 18:18:10 +00:00
Vladislav Bolkhovitin b472117f79 Sysfs cleanups and fixes, part 2, final (hopefully).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1985 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-25 12:43:49 +00:00
Vladislav Bolkhovitin b5012bba69 Forgotten chunk from the previous commit
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1975 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-23 11:00:25 +00:00
Vladislav Bolkhovitin 7b59e08a27 - Cleanups
- Attributes threads_num and threads_pool_type made appear only when supported



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1974 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-23 10:56:54 +00:00
Vladislav Bolkhovitin f2852768a7 Cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1973 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-23 10:42:38 +00:00
Vladislav Bolkhovitin 1607d12c9c Sysfs cleanups and fixes, part 1
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1962 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-20 15:38:21 +00:00
Vladislav Bolkhovitin 11a8b8e9c6 Pass-through dev handlers are async, so let's make them single threaded.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1959 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-19 12:39:26 +00:00
Vladislav Bolkhovitin 25025f3a5a Update docs about kernel versions where BLOCKIO problem (http://lkml.org/lkml/2010/7/28/315) was fixed. Big thanks to Bryan Mesich <bryan.mesich@ndsu.edu>!
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1955 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-17 19:13:00 +00:00
Bart Van Assche f6cd30ca7c Whitespace-only change: fixed a checkpatch complaint.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1953 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-17 17:38:56 +00:00
Vladislav Bolkhovitin 7eddeb82ab - Some iSCSI performance fixes
- __attribute__((aligned(sizeof(long))) added to all field with different protection than the previous field to make sure they don't share the same bus line. Just in case, actually, compiler should do the alignment by default.

 - Small docs updates.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1948 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-13 18:12:45 +00:00
Vladislav Bolkhovitin c45aa9a60f 1. Fix for a possible hang on threading model changing
2. Performance improvement on rotating storage



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1943 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-09 10:28:52 +00:00
Vladislav Bolkhovitin a93457e2cf Let's proceed as implicit HQ only SIMPLE commands.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1937 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-05 19:41:52 +00:00
Vladislav Bolkhovitin df49194694 Patch from Joe Eykholt <jeykholt@cisco.com> fixing minor issue with 2.6.35
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1933 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-04 13:32:43 +00:00
Bart Van Assche 9cdef50326 Made sure that the 2.6.35 kernel patches apply cleanly.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1931 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-04 09:55:10 +00:00
Vladislav Bolkhovitin 19b3a787ac Add missed comma
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1926 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-03 19:19:39 +00:00
Vladislav Bolkhovitin 556839b817 Document BLOCKIO regression on kernels 2.6.32+
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1920 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-03 16:59:37 +00:00
Bart Van Assche 7b839ceaf7 Added to repository.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1916 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-03 15:33:45 +00:00
Vladislav Bolkhovitin 95000212ed Fixing handling of REQUEST SENSE and INQUIRY for target driver supplied buffers
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1908 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-02 17:59:09 +00:00