Commit Graph

4574 Commits

Author SHA1 Message Date
Vladislav Bolkhovitin
fb0256ba8a Small performance optimization: wake up IO/processing threads in LIFO order.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@928 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-30 16:13:48 +00:00
Vladislav Bolkhovitin
700eb30c9c Backported versions of the context readahead patch http://lkml.org/lkml/2009/4/12/9, which improve performance of Linux read-ahead algorithm.
Thanks to Wu Fengguang for backporting!



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@927 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-30 10:45:48 +00:00
Bart Van Assche
23e57ce05d Compiles now against vanilla 2.6.18 kernel headers.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@926 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-29 19:00:10 +00:00
Vladislav Bolkhovitin
52c786d105 Patch from Klaus Hochlehnert <Mailings@kh-dev.de>:
Here's the readahead patch for Ubuntu 8.04 - 2.6.24 kernel



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@925 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-29 18:11:58 +00:00
Bart Van Assche
9cc47f781a Ported from bash to sh and from GNU awk to POSIX awk. Runs now correctly on an unmodified Debian or Ubuntu system.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@924 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-29 17:55:32 +00:00
Richard Sharpe
dc78e8a39c Add some conditional code to handle kernel versions less that 2.6.25 that
can send a request as a non scatterlist. If we get one, we create a single
element scatterlist and hand that on to SCST. 

This costs some extra space in the structure I use to keep track of requests
and the done function, but only on those versions for which it is possible.
For real kernels it is scatterlists all the way down young man.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@922 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-26 00:54:57 +00:00
Richard Sharpe
6f5bc12172 Remove an ugly hack that was left in just in case. It has been confirmed to
be not needed.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@921 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-24 23:10:53 +00:00
Vladislav Bolkhovitin
496aa824f4 Cleanup of use of READ ONLY flag
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@918 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-24 12:40:28 +00:00
Stanislaw Gruszka
25d4acd35f Fix compilation on linux kernels 2.6.28, 29 and 30.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@917 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-23 17:29:30 +00:00
Vladislav Bolkhovitin
cc3453f142 Cleanup: sess->shutdown_compl made on stack
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@916 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-23 12:15:49 +00:00
Vladislav Bolkhovitin
cf296ba80c Fix possible crash in scst_copy_sg()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@914 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-19 16:32:26 +00:00
Bart Van Assche
7084cac82e Display which kernel headers are used during compilation of the SRP target driver.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@913 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-18 18:35:05 +00:00
Andy Yan
be0eb86e2f 1. Fixed deadlock issue.
2. Update code to support adaptable feature set according chip type.
3. Add support new B0 chip of 9480.
4. Add change log file and README

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@912 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-18 09:12:44 +00:00
Vladislav Bolkhovitin
b81357d452 scstadmin docs improved
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@910 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-17 17:28:05 +00:00
Vladislav Bolkhovitin
8bbdf3949f A bunch of minor changes:
- Logging improved
 - #warning about io_context patched for pre-2.6.27 kernels improved
 - Docs updated



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@909 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-17 17:22:17 +00:00
Vladislav Bolkhovitin
0d445511f8 WEB updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@908 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-17 10:39:15 +00:00
Vladislav Bolkhovitin
d1470f9526 Some time ago it became clear that some SCST users are using kernel 2.6.23. So
it makes sense to run the nightly build also for kernel 2.6.23. But doing so
is only possible with the attached two files present in the SCST tree.
Except for the kernel version these patches are identical to the corresponding
patches for the 2.6.24 kernel.

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@907 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-16 19:36:11 +00:00
Bart Van Assche
f9084ffb54 Updated kernel version 2.6.29.4 to 2.6.29.5.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@906 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-16 15:31:04 +00:00
Bart Van Assche
6a80e5441e Removed trailing whitespace.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@905 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-16 06:29:04 +00:00
Bart Van Assche
1593c39a80 Removed trailing whitespace from the newly added lines in the readahead* patches.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@904 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-16 06:28:06 +00:00
Bart Van Assche
992bff5645 Added readahead-${kernel_version}.patch.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@903 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-15 19:23:06 +00:00
Bart Van Assche
5ae810ec2c Added more kernel versions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@902 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-15 19:08:42 +00:00
Bart Van Assche
1f5216bc21 Split table header over two lines / columns are now lined up with the table header if all printed numbers are smaller than 10000.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@901 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-15 18:55:36 +00:00
Bart Van Assche
92dbb5eebf Made command-line option documentation more clear.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@900 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-15 10:59:54 +00:00
Richard Sharpe
8187f28719 Make scst_local compile cleanly on a range of versions of Linux. I have tested
2.6.24, 2.6.25.4, 2.6.27.x and 2.6.29. I have also tested under 2.6.18 on a
CentOS 5.3 system. 

There might still be problems with some 2.6.18 systems, and I will commit more
changes as the need arises.

I have only tested that scst_local builds and loads with these changes. I have
not tested any devices as yet.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@899 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-14 21:00:52 +00:00
Bart Van Assche
010750bf7c Ported to 2.6.30 kernel.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@898 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-14 07:45:12 +00:00
Bart Van Assche
5c4a41b656 - Added command-line option -i.
- Added additional columns with average transfer speed in MB/s, the
  standard deviation for this average, and the number of IOPS.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@897 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-11 18:59:00 +00:00
Vladislav Bolkhovitin
0bb8a456dd readahead patches added. See http://sourceforge.net/mailarchive/forum.php?thread_name=a0272b440906030714g67eabc5k8f847fb1e538cc62%40mail.gma
il.com&forum_name=scst-devel for more details.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@896 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-08 17:01:04 +00:00
Vladislav Bolkhovitin
93b55b1368 Merge of IET r213
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@894 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-03 19:19:36 +00:00
Vladislav Bolkhovitin
75ede9ffb9 - 64-bit cleanups
- Other monor fixes and cleanups
 - Docs updates



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@892 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-03 19:01:58 +00:00
Vladislav Bolkhovitin
8a98aa4e56 64-bit cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@891 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-03 18:59:30 +00:00
Vladislav Bolkhovitin
b25f375dac Web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@890 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-03 18:57:37 +00:00
Stanislaw Gruszka
3fe62e70a8 Fix compilation error in some strange circumstances, I think change is harmless.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@889 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-02 16:24:38 +00:00
Bart Van Assche
29a7e1b926 Added to repository.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@882 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-22 11:02:45 +00:00
Bart Van Assche
fd89f0427b Updated SRPT documentation.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@881 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-22 10:59:16 +00:00
Bart Van Assche
262a538807 - Compiles again on RHEL 5.
- RHEL 5 + OFED: fixed kernel oops that was triggered by the reception of
  an asynchronous InfiniBand event.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@880 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-22 06:39:42 +00:00
Bart Van Assche
4f8bd9a517 Removed the scst_released synchronization object because the previous
commit made it superfluous.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@879 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-21 12:41:53 +00:00
Bart Van Assche
7519550fcb Moved scst_register() call from srpt_detect() to srpt_add_one(). Added
call to scst_unregister() in srpt_remove_one(). Result:
- The kernel oops triggered by loading the ib_srpt kernel module before
  the InfiniBand subnet manager became active is now fixed.
- It is now possible to log in via the SRP protocol through HCA's that
  became active after the ib_srpt kernel module finished module
  initialization.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@878 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-21 12:34:11 +00:00
Bart Van Assche
106acdb7d6 - Switched to a more traditional error handling style with regard to MAD
handler registration: sport->mad_agent is now reset to NULL when MAD
  handler registration fails.
- Fixed bug in srpt_refresh_port(): this function now returns a negative
  value instead of zero when MAD registration fails.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@877 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-21 11:28:09 +00:00
Bart Van Assche
00dcebdb41 Fixed bug that was introduced through the previous commit (r875): a warning message was printed by srpt_remove_one() when sdev != NULL instead of when sdev == NULL.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@876 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-21 10:57:20 +00:00
Bart Van Assche
b2d0960b57 Moved the code for freeing the ring of I/O context structures to a separate function.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@875 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-21 06:54:42 +00:00
Bart Van Assche
2959a19435 Moved the code for unregistering the MAD agent into a separate function.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@874 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-21 06:33:38 +00:00
Vladislav Bolkhovitin
a53c13da95 Fixes possible miss of UCMD_STATE_ON_FREEING event found by Erez Zilber <erezzi.list@gmail.com> + some cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@870 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-20 17:16:23 +00:00
Bart Van Assche
5266dcd63b Updated kernel versions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@869 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-20 16:50:24 +00:00
Bart Van Assche
706eee64fd Only apply patch d9ad8bc0ca823705413f75b50c442a88cc518b35 to kernels
2.6.29 up to and including 2.6.29.3 since this patch is included in
2.6.29.4 and higher and also in 2.6.30 and higher.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@868 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-20 16:48:14 +00:00
Bart Van Assche
a9db802731 Removed a trailing tab.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@867 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-20 16:44:23 +00:00
Bart Van Assche
06bdff9f2f Updated kernel versions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@866 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-20 15:47:14 +00:00
Vladislav Bolkhovitin
0f164fd9a8 Fixes issues cased by recent change of cdb_len to unsigned. Reported by Krzysztof Błaszkowski <kb@sysmikro.com.pl>.
Also it adds INIT ELEMENT STATUS WRANGE to the list of known commands. 



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@864 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-19 18:19:06 +00:00
Bart Van Assche
7617a71367 Added more comments.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@863 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-19 17:58:06 +00:00
Vladislav Bolkhovitin
cf327b8009 Minor fixes and cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@862 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-19 17:56:25 +00:00