Commit Graph
726 Commits
Author SHA1 Message Date
Vladislav Bolkhovitin ff2c24c1c3 Assigning CPU affinity to threads and connections
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2317 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-30 18:07:27 +00:00
Vladislav Bolkhovitin 8d23a63c3c Cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2296 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-28 15:02:21 +00:00
Vladislav Bolkhovitin 121a30e9b2 Big CDBs handling improvements.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2295 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-28 13:56:46 +00:00
Vladislav Bolkhovitin 2546872ae5 Setting may_need_dma_sync in scst_get_sg_X_page_first() is not needed, because it doesn't map the page and CPU doesn't access the data directly
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2293 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-27 20:45:54 +00:00
Bart Van Assche ea3fae76f6 Added scst_local to the SCST Kconfig file.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2289 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-27 15:28:15 +00:00
Vladislav Bolkhovitin 9083a1facd Remove checking of rel_tgt_id on disabling targets
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2274 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-25 18:35:29 +00:00
Vladislav Bolkhovitin 864d4b38c7 Fix possible deadlock on waiting on blocking. As a side effect it leaded to a nice cleanup.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2272 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-25 18:25:32 +00:00
Bart Van Assche b46575a6ee Builds now on PowerPC systems too.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2267 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-25 10:33:08 +00:00
Bart Van Assche 0ed0b1f709 Reapplied r2249 (was lost by moving constants from scst.h to scst_const.h.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2257 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-24 20:21:28 +00:00
Bart Van Assche 6e35445b98 Moved the UNMAP and BLKDISCARD definitions from scst.h to scst_const.h.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2254 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-24 19:39:40 +00:00
Vladislav Bolkhovitin 83e1bd97da As is clear from the output of the nightly build, sparse goes crazy on the
current scst_vdisk.c code: it reports 99 times "cast removes address space of
expression" on the same scst_vdisk.c line before giving up. The patch below
makes sparse stop complaining on scst_vdisk.c.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2251 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-24 19:21:35 +00:00
Bart Van Assche 50f64cc7ca Builds now on 2.6.27 too.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2249 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-24 19:15:14 +00:00
Bart Van Assche e77a5e5072 Build fix.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2246 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-24 18:01:57 +00:00
Bart Van Assche 487a846ef8 Follow-up for r2216: made sure that scst_vdisk.c compiles again on kernels before 2.6.33.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2245 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-24 17:59:42 +00:00
Vladislav Bolkhovitin c7c2aa55e4 Fix possible crash if expected values not set
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2234 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-24 12:40:43 +00:00
Vladislav Bolkhovitin 30b6564f81 Patch from Richard Sharpe <realrichardsharpe@gmail.com> with fixes and improvements implementing UNMAP command
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2216 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-23 18:10:57 +00:00
Vladislav Bolkhovitin e85fa52760 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/trunk@2201 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-23 13:31:54 +00:00
Vladislav Bolkhovitin 3c2f16d838 Improved errors reporting
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2174 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-22 19:26:10 +00:00
Vladislav Bolkhovitin 38327e08ae Handling of max_sectors backend limit added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2173 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-22 19:24:15 +00:00
Vladislav Bolkhovitin e696ce50d6 Docs updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2136 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-16 18:55:52 +00:00
Vladislav Bolkhovitin 53d2c612b7 Small improvement: scst_get_sg_page_first()/scst_get_sg_page_next() added to avoid page_address()/virt_to_page() pair for cases, where only pages are needed.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2131 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-15 19:18:47 +00:00
Bart Van Assche f725c61c7b Source code comment spelling fix.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2130 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-15 18:04:26 +00:00
Vladislav Bolkhovitin 669c380211 The patch below makes it again possible to build SCST against the 2.6.23
or before kernel headers and also suppresses several compiler warnings
about possibly uninitialized variables.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2129 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-15 18:00:17 +00:00
Bart Van Assche 35dc0e55f2 Removed two superfluous semicolons.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2128 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-15 07:33:41 +00:00
Bart Van Assche cb36024b63 Builds again against kernel 2.6.23 and before.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2126 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-14 10:55:10 +00:00
Bart Van Assche 25cb08ed2f Fixed a checkpatch complaint about 'return is not a function'.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2125 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-14 08:42:25 +00:00
Bart Van Assche 19ac548c1a Fixed a checkpatch complaint about whitespace and a compiler warning about a format string mismatch.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2124 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-14 07:40:12 +00:00
Vladislav Bolkhovitin 62564bb386 More version updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2121 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-13 22:04:14 +00:00
Vladislav Bolkhovitin 69540954d5 Cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2116 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-13 21:10:13 +00:00
Vladislav Bolkhovitin f6a2a6b4db CDB splitting added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2115 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-13 21:02:35 +00:00
Vladislav Bolkhovitin 98b09a7a26 SG chaining implemented
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2113 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-13 20:47:44 +00:00
Vladislav Bolkhovitin 1f5ff3e5ed Change version on 2.1.0-pre1
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2112 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-13 20:45:46 +00:00
Vladislav Bolkhovitin d27bbc0d15 Final version and docs update before pushing it into the stable branch
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2090 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-10 14:07:53 +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