Commit Graph

706 Commits

Author SHA1 Message Date
Stanislaw Gruszka
bd61ebf496 Synchronize with Feral CVS repository:
-revert the part of 1.174 that stopped complaining about not finding
 fast posting handles.
-pull REPORT LUNS (and LUN INVENTORY MAY HAVE CHANGE CA condition) from
 multi-channel branch


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@256 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-02-12 08:58:04 +00:00
Stanislaw Gruszka
284d07c718 Synchronize with Feral CVS repository:
- clean up tpublic notes and change tmd_xfr_t to tmd_xact_t
- minor cleanups from mendocino


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@255 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-02-12 08:40:54 +00:00
Vladislav Bolkhovitin
2c7a042a89 Small typo noticed by Tomasz Chmielewski
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@254 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-02-08 16:20:27 +00:00
Vladislav Bolkhovitin
b1563d1ab0 Clustering statistic added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@253 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-02-01 15:41:38 +00:00
Vladislav Bolkhovitin
17b8dd6a3a Forgotten in the previous commit kernel patches
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@252 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-02-01 10:33:47 +00:00
Vladislav Bolkhovitin
7d18a8a3e2 - Update to work on 2.6.24
- Minor cleanups


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@251 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-01-31 18:28:43 +00:00
Vladislav Bolkhovitin
d2d1b2ccf1 Web pages updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@250 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-01-24 12:21:45 +00:00
Vladislav Bolkhovitin
af933af991 - Version protection added
- Cleanups


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@249 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-01-24 11:52:01 +00:00
Vladislav Bolkhovitin
9847aa17ba - A bunch of minor, mostly stability related, fixes.
- Docs update


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@248 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-01-24 10:56:35 +00:00
Vladislav Bolkhovitin
87013ddcde Web pages updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@247 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-01-23 16:03:20 +00:00
Vladislav Bolkhovitin
1964293ff1 - Important iSCSI stability on connection close fixes.
- Latency measurements improvements
 - Minor improvements and logging changes


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@246 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-01-18 19:13:04 +00:00
Vladislav Bolkhovitin
7ab4d3e638 - Processing latency measurement facility added
- README updated
 - Minor fixes


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@245 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-01-14 18:21:01 +00:00
Vladislav Bolkhovitin
7412de833b Logging improvements
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@244 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-01-11 18:09:38 +00:00
Vladislav Bolkhovitin
0489f4287b - Fixed possible crash on SN slots overflow
- Docs updates
 - Other minor changes


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@243 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-01-11 10:03:48 +00:00
Vladislav Bolkhovitin
9fcc6e3a25 - Fixes two problems on connection closing, leading to crashes and memory corruptions
- Small logging improvements


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@242 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-01-04 17:29:58 +00:00
Vladislav Bolkhovitin
02ca798c81 Minor logging changes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@241 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-12-31 11:42:23 +00:00
Vladislav Bolkhovitin
e819486311 - Fixed huge iSCSI RFC violation, inherited from IET: incorrect commands ordering.
- TM fixes related to new commands serialization
 - Other TM improvements
 - Minor changes: likely/unlikely and priority of mgmt threads

Work not fully completed, still there are some rare issues.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@240 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-12-29 17:04:13 +00:00
Vladislav Bolkhovitin
1eb68c6f22 - Broken VERIFY commands fixed (hopefully; compile tested only)
- Mistyped spin_lock() instead spin_lock_bh() fixed
 - DEBUG_TM and small logging improvements
 - Docs update


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@239 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-12-24 19:22:02 +00:00
Vladislav Bolkhovitin
d0dcc1a584 Patches from Arne Redlich <agr@powerkom-dd.de>:
1. The kernel's log level is a string, so strcmp needs to be used for
comparisons.

2. Svn HEAD doesn't compile against kernel versions < 2.6.19 because
"bool" had its debut only in 2.6.19. Here's a quick fix.

3. Iscsi-scstd dies with SIGPIPE if run in foreground mode because the reading
end of the init_report_pipe is already closed in this mode.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@238 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-12-24 10:20:18 +00:00
Vladislav Bolkhovitin
a59b9a0849 - Update to the latest IET r145
- TM fixes and improvements, particularly, TARGET RESET now resets only visible to the initiator devices
 - Logs improvements


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@237 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-12-21 19:10:40 +00:00
Vladislav Bolkhovitin
e8b529b074 - Makes sessions registration/unregistration independant from other activities
- Cleanups
 - Docs update


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@236 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-12-14 16:51:36 +00:00
Vladislav Bolkhovitin
70f471427a Minor fixes and improvements
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@235 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-12-14 16:43:23 +00:00
Vladislav Bolkhovitin
2c263786c2 Perf/release patches fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@234 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-12-13 18:33:30 +00:00
Vladislav Bolkhovitin
1e18aabf3a - Implement SN based iSCSI IO flow control
- ABORT_CONSIDER_FINISHED_TASKS_AS_NOT_EXISTING compilation symbol added
 - TM fixes and cleanups
 - Fixes crash on modprobe with some real devices


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@233 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-12-13 18:28:34 +00:00
Vladislav Bolkhovitin
eb2a55ef21 - Fixed incorrect residual on internal BUSY replies
- Cleanups and ChangeLog updates


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@232 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-12-12 16:06:47 +00:00
Vladislav Bolkhovitin
513b742628 Fixed possible crash if tgt module rmmod'ed under load
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@231 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-12-11 10:51:08 +00:00
Vladislav Bolkhovitin
40a40b2038 Post r227 fixes and cleanups. Particulary, fixes brocken by it scst_user functionality and release/perf builds
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@230 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-12-10 12:09:07 +00:00
Stanislaw Gruszka
8fc11f1234 Pass delivery status to SCST.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@229 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-12-10 11:53:05 +00:00
Vladislav Bolkhovitin
f92d4bdfea Patch from Vu Pham <huongvp@yahoo.com>:
We currently have multiple scst targets with exported fileio or blockio luns using the same files or block devices.
These fileio or blockio luns end up to have the same lun ID (dev_id_num), linux dm-multipath  recognizes them as same lun (because of lun ID) with different paths which is wrong. It should be multiple separated luns from different scst targets. 


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@228 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-12-07 17:32:33 +00:00
Vladislav Bolkhovitin
d33edb6ba3 Simple bugfix for concurrent work of several targets, which eventually turned out in a massive cleanup and fixes.
Particularly:
 - Added ability for target drivers to set result of command's status delvery to initiator (see scst_set_delivery_status())
 - Added ability for user space devices set some mode page parameters to make SCST core behave correspondingly
 - TM improvements
 - Few possible crashes fixed
 - Logging improvements
 - Performance improvements
 - Docs updates


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@227 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-12-07 17:00:42 +00:00
Vladislav Bolkhovitin
8555992770 Patch from Krzysztof Blaszkowski <kb@sysmikro.com.pl>: Let SLAB decide amount of pages per slab
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@226 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-11-26 16:47:16 +00:00
Vladislav Bolkhovitin
1fb8175c51 - Fixes build problem in perf mode
- Switches between debug modes made as Makefile targets, thanks Tomasz Chmielewski <mangoo@wpkg.org> for idea


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@225 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-11-26 16:23:50 +00:00
Vladislav Bolkhovitin
ee02bbf582 Fixes crash on reservation conflict + some cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@224 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-11-16 18:46:02 +00:00
Vladislav Bolkhovitin
fb3a9201cc - Fixes hang in TCP CLOSE/CLOSE_WAIT stages
- Minor debug improvements


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@223 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-11-15 16:12:08 +00:00
Vladislav Bolkhovitin
93e0f56a01 Fixes race found by Anton Novodvorsky <anovodvorsky@gmail.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@222 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-11-15 15:54:53 +00:00
Vladislav Bolkhovitin
ffb60ac8fc Now if iSCSI daemon fails to load config file, it fails to load.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@221 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-11-13 17:28:28 +00:00
Vladislav Bolkhovitin
2de18c7c7a - Now iSCSI target service load considered successful if at least one listen socket was successfully open and setup
- Minor race on BLOCKIO requests submittion was fixed
 - Other minor fixes and cleanups


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@220 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-11-12 11:21:54 +00:00
Mark Buechler
ae6f85074d - Fixed config file parsing for null groups when a group
name was the same as an assignment immediately following
  it.
- Added support for undefined groups at the time of assignment.
  If a given group does not exist, an empty group will be
  created and a warning will be issued.
- Make method cleanupString() in SCST::SCST private.
- Minor updates.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@219 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-11-07 19:00:58 +00:00
Vladislav Bolkhovitin
406a0dc9a6 Fixes regression introduced in r209
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@218 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-11-07 15:28:43 +00:00
Vladislav Bolkhovitin
602b9a8c58 Minor pass-through related fixes and logging improvelemnts
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@217 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-11-02 19:20:59 +00:00
Stanislaw Gruszka
9fbca126b3 remove no_autosense workaround
on receive check if all data was transferred before pass it to scst


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@216 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-11-02 11:02:50 +00:00
Stanislaw Gruszka
8c1327661b synchronize with feral cvs repository, this time Matthew fix autosense problems :-)
+ The 24XX code in isp_target_start_ctio was setting the wrong values 
to set SENSE LENGTH VALID for the FCP RSPNS IU.

+ Amusingly enough, this apparently didn't matter. In fact, once sense 
data was being put into the ct7_entry_t there was *still* a problem 
and REQUEST SENSE was being sent by the Linux initiator.

+ What *was* happening is that the 24XX requries the response data to
be 32 bit swapped. This is not obvious from the chip documents.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@215 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-11-02 08:43:47 +00:00
Vladislav Bolkhovitin
71592f2cac Cleanups, debug imporvements and minor fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@214 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-11-01 17:07:07 +00:00
Vladislav Bolkhovitin
053d7a8753 - Patch from Tomasz Chmielewski <mangoo@wpkg.org>: fixes incorrect shutdown on Debian systems.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@213 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-10-26 15:58:50 +00:00
Vladislav Bolkhovitin
9120a41d61 - Fixed ignoring errors on the service start. Reported by Tomasz Chmielewski <mangoo@wpkg.org>
- Minor fixes


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@212 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-10-25 16:19:40 +00:00
Vladislav Bolkhovitin
4685895276 - Fixed typos noticed by Tomasz Chmielewski
- Forgotten fixes for previous commit
--Tohis line, and those below, will be ignored--

M    trunk/iscsi-scst/kernel/patches/put_page_callback-2.6.16.29.patch
M    trunk/iscsi-scst/kernel/patches/put_page_callback-2.6.21.1.patch
M    trunk/iscsi-scst/kernel/patches/put_page_callback-2.6.22.patch
M    trunk/iscsi-scst/kernel/patches/put_page_callback-2.6.23.patch
M    trunk/iscsi-scst/kernel/patches/put_page_callback-2.6.18.1.patch
M    trunk/scst-full_perf.patch
M    trunk/scst-release.patch


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@211 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-10-25 10:46:29 +00:00
Vladislav Bolkhovitin
3e3ff59ca8 - Cleanups and fixes in transfer length and direction processing.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@210 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-10-25 09:54:00 +00:00
Vladislav Bolkhovitin
ec6f11c514 Update to work on 2.6.23+ kernels + some other related fixes and updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@209 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-10-23 15:35:20 +00:00
Stanislaw Gruszka
463fe3ac7f remove not necessary linux 2.4 Makefiles, isp stops support 2.4
update copyrights (GPLv3 avoidance)


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@208 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-10-23 09:51:55 +00:00
Stanislaw Gruszka
b1e8b56a2f update installation instructions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@207 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-10-23 09:26:21 +00:00