8786 Commits

Author SHA1 Message Date
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
Bart Van Assche
5347e3f509 Reverted r857 because the coding style of r856 is believed to be what is expected upstream instead of the coding style of r857.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@860 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-19 16:41:09 +00:00
Vladislav Bolkhovitin
0013da36a6 Changes suggested by Sam Haxor <generationgnu@yahoo.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@859 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-18 18:09:35 +00:00
Vladislav Bolkhovitin
1e1476089d Web updates. Particularly, scst_pg has changes suggested by Sam Haxor <generationgnu@yahoo.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@858 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-18 18:08:04 +00:00
Bart Van Assche
f3d5d989ca Cleaned up changes introduced in r855.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@857 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-16 11:24:45 +00:00
Bart Van Assche
812d04fa03 Added more comments.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@856 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-16 11:20:52 +00:00
Bart Van Assche
76bdb860f0 Split srpt_handle_new_iu() in smaller functions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@855 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-16 07:34:41 +00:00
Bart Van Assche
522f356b5e Removed a trailing space because checkpatch complained about it.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@854 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-16 07:10:28 +00:00
Dotan Barak
9fd2646cf0 Add dopey script that can turn a .h firmware file into
a loadable binary.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@853 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-14 02:24:43 +00:00
Bart Van Assche
0f13efa2b1 Added command-line option -r.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@852 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-12 18:53:11 +00:00
Andy Yan
899450e0cd 1. Fixed some issues with initiator driver.
2. Clean up code.
3. Fixed issue with supporting task management function.
4. Fixed issue with checking and sending sense data.
5. update version to 0.8.3.

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@849 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-12 06:54:54 +00:00
Bart Van Assche
0a76a2b21a Updated to do list.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@848 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-11 17:55:59 +00:00
Vladislav Bolkhovitin
ab943ee30a Scst_user doc updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@846 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-11 17:37:55 +00:00
Vladislav Bolkhovitin
eb2a491ec6 Support for shared between devices caches added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@844 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-11 17:36:44 +00:00
Vladislav Bolkhovitin
e061263995 - Necessary cleanups in SGV cache for upcoming improvements. Particularly, all reclaiming management made per-pool, not global as before
- Shared between devices caches implemented



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@843 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-11 17:30:47 +00:00
Vladislav Bolkhovitin
1a390f63de - Error logging improved
- Docs updates



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@842 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-11 17:26:17 +00:00
Vladislav Bolkhovitin
1c304091f4 - Data digest SMP scalability imcreased
- Iscsi_dump_char() made thread safe



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@841 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-11 17:24:51 +00:00
Vladislav Bolkhovitin
9414a771d6 Web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@840 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-11 17:19:14 +00:00
Vladislav Bolkhovitin
286cc2ae94 Fix possible crash with too fast target mode enabling/disabling or module unload
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@839 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-11 17:06:54 +00:00
Bart Van Assche
72f5b47141 Another documentation update.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@838 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-10 19:20:58 +00:00
Bart Van Assche
0f132124b9 Added more details.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@837 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-10 18:28:09 +00:00
Bart Van Assche
7340819a3f Clarified an error message.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@836 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-10 18:25:08 +00:00
Bart Van Assche
63bc07871d Added a variant of the patch for scripts/Makefile.lib.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@835 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-10 18:04:57 +00:00
Bart Van Assche
603d81dde4 Documented how to build SCST-SRPT against OFED.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@834 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-10 17:31:22 +00:00
Bart Van Assche
9b25c9c44c Updated to do file.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@833 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-10 17:29:41 +00:00
Dotan Barak
3206819128 Fix various buglets that really were seriously bad and resync with FreeBSD tree.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@831 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-10 17:18:00 +00:00
Bart Van Assche
647f7febc9 Updated kernel revisions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@830 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-09 09:14:21 +00:00
Vladislav Bolkhovitin
7b199bfe16 Small web mistake fixed
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@829 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-08 17:38:12 +00:00
Vladislav Bolkhovitin
7b0da19ed1 Web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@828 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-08 17:35:44 +00:00
Vladislav Bolkhovitin
1060d45a1f Patch from frank zago <fzago@systemfabricworks.com> with some modifications. It exposes scst parameters scst_max_cmd_mem and scst_max_dev_cmd_mem as well as vdisk's parameters num_threads and scst_vdisk_ID visible through /sys/module/scst and /sys/module/scst_vdisk correspondingly.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@827 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-08 10:35:24 +00:00
Andy Yan
de7c4222c9 1. Fixed bug - Task frame type setting.
2. Dead lock risk.
3. Null pointer may be used.
4. Alignment issue

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@826 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-08 05:40:38 +00:00
Dotan Barak
0dc942ca13 A lot of microchanges, but actually this means that the FreeBSD port,
the SCST port, and the non-SCST Feral port are all more or less in
sync. And apparently somewhat functional.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@825 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-07 01:52:56 +00:00
Vladislav Bolkhovitin
6425f39dc3 Unfortunately the latest InfiniBand software is not included in Linux
distributions but must be installed separately via the OFED package. The patch
below makes it easier to compile SCST-SRPT with the OFED kernel headers by
disabling the backported <linux/scatterlist.h> macro's when compiling with
OFED kernel headers. OFED namely has its own set of backported macro's. OFED
kernel headers are detected via the preprocessor symbol
__BACKPORT_LINUX_SCATTERLIST_H_TO_2_6_23__, which is defined in the OFED
header file <linux/scatterlist.h> only. This patch does not have any effect
when compiling SCST on a system where OFED has not been installed.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@824 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-05 18:58:06 +00:00
Bart Van Assche
69d545d77d Added the equivalent of #undef BACKPORT_LINUX_WORKQUEUE_TO_2_6_19.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@823 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-04 20:03:48 +00:00
Bart Van Assche
52d50a5ea7 Removed one OFED installation test because on some distro's it triggers false complaints.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@822 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-04 20:02:30 +00:00
Bart Van Assche
00aa42706f Fixed checkpatch complaints about whitespace (indentation should use tabs / trailing whitespace).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@821 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-04 19:07:22 +00:00
Bart Van Assche
c521377609 ib_srpt.c compiles now on RHEL 5.x systems where OFED has been installed.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@820 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-04 18:57:04 +00:00
Bart Van Assche
2f1acab33e Prepend the OFED kernel header paths before the regular kernel header path when compiling on a system where OFED has been installed.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@819 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-04 18:55:50 +00:00
Bart Van Assche
7e3360b247 Updated kernel versions to latest stable kernels.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@818 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-04 12:06:40 +00:00