Commit Graph

4574 Commits

Author SHA1 Message Date
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
Stanislaw Gruszka
63032f29d8 synchronize with feral cvs repository
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@206 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-10-23 08:57:16 +00:00
Vladislav Bolkhovitin
1d77a72af3 - Fixed BUG() with put_page_callback patch for network hardware without TX offload
- Fixed 2 corner cases crashes with disabled pass-through devices
 - Docs updated


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@205 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-10-18 10:12:34 +00:00
Vladislav Bolkhovitin
a8c124da1b - Fixes 2 shutdown problems
- Cosmetics


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@204 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-10-02 15:04:04 +00:00
Vladislav Bolkhovitin
a779f1a343 Fixes possible double release
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@203 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-10-01 08:10:31 +00:00
Vladislav Bolkhovitin
3d7c4fe1be - Fixed closing connection related race
- Minor cleanups 


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@202 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-28 13:58:27 +00:00
Vladislav Bolkhovitin
3a27584573 - Put_page patches remaned to correspond with the full kernel versions, for which they were created
- Minor cleanups 


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@201 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-28 13:57:06 +00:00
Vladislav Bolkhovitin
5380955523 - Increased INCOMING_MAX as suggested in http://blog.wpkg.org/2007/09/09/solving-reliability-and-scalability-problems-with-iscsi/.
- Minor Makefile fixes


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@200 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-25 13:39:25 +00:00
Vladislav Bolkhovitin
455778bf10 - Fixes memory leaks in scst_user spotted by new SGV cache backend
- Version changed on -pre3
 - Minor fixes and cosmetics


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@199 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-25 09:52:53 +00:00
Vladislav Bolkhovitin
a61f896dd3 - Fixes commands leak in case of, e.g., QUEUE FULL status returned, because of uninitialised cmd->sn.
- HEAD OF QUEUE commands processing simplified to fix known problems
 - Cosmetics 


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@198 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-25 09:46:36 +00:00
Vladislav Bolkhovitin
c5469e6126 - Patch from Krzysztof Blaszkowski <kb@sysmikro.com.pl> with some cosmetics: fixes sometimes incorrect active_pages_total accounting
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@197 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-25 09:39:04 +00:00
Vladislav Bolkhovitin
55ae59599b - Fixes wrong IRQ-safe/IRQ-unsafe locking dependancy spotted by lockdep: scst_check_local_events() must not be called with IRQs disabled
- Cosmetics 


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@196 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-25 09:36:27 +00:00
Vladislav Bolkhovitin
d941e7f77a Debug mode switch scripts made executable
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@195 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-25 09:34:37 +00:00
Vladislav Bolkhovitin
cc0a16b959 - Docs updated
- Switches debug<->performance<->release builds added
 - Cosmetics 

A    trunk/usr-full_perf.patch
M    trunk/iscsi-scst/README
A    trunk/iscsi-full_perf.patch
A    trunk/debug2perf
A    trunk/perf2debug
A    trunk/usr-release.patch
A    trunk/qla2x00t-full_perf.patch
A    trunk/iscsi-release.patch
A    trunk/scst-full_perf.patch
A    trunk/qla2x00t-release.patch
A    trunk/scst-release.patch
A    trunk/README
A    trunk/usr/fileio/README
A    trunk/debug2release
A    trunk/release2debug
M    trunk/scst/src/scst_lib.c
M    trunk/scst/src/scst_mem.c
M    trunk/scst/README
M    trunk/Makefile


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@194 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-25 09:30:12 +00:00
Vladislav Bolkhovitin
154a4eda43 - Patch from Krzysztof Blaszkowski <kb@sysmikro.com.pl>: fixes possible active_pages_total corruption in scst_free() if use_clustering was enabled in scst_alloc().
- Now scst_alloc() always doesn't use clustering. 


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@193 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-25 09:20:30 +00:00
Vladislav Bolkhovitin
d7dc51c031 - Patch from Krzysztof Blaszkowski <kb@sysmikro.com.pl> with cosmetic cleanups by me. It implements new SGV cache low memory management backend with memory flow control facility
- Version changed to -pre3 


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@192 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-25 09:17:16 +00:00
Vladislav Bolkhovitin
205bf6c973 - Patch from Krzysztof Blaszkowski: move SGV cache /proc support in the scst_mem.c
- Minor doc fix


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@191 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-25 09:11:08 +00:00
Vladislav Bolkhovitin
d2799ea8fa Fix from Jianxi Chen <pacers@users.sourceforge.net>, which fixes problem with devices >2TB in size
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@190 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-24 16:07:04 +00:00
Vladislav Bolkhovitin
4f79d58a3c - Patch from Aravind Parchuri <aravind.parchuri@gmail.com> with some my modifications:
* Allows LSI MPT target driver to compile on kernels >2.6.15
   * Changes the way how gettid() syscall gate implemented
 - Small doc update


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@189 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-19 09:19:29 +00:00
Stanislaw Gruszka
d2aa9c0ac1 In cases when we load driver and initiator send some events like LIP, we may
not be ready to ack event and finally there is oops in interrupt. Fix this.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@188 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-18 06:21:41 +00:00
Stanislaw Gruszka
b10fbd2b80 Request irq after pci initialization is finished.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@187 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-12 14:11:45 +00:00
Stanislaw Gruszka
7a93ba59a8 Map properly task management function codes from low level driver to scst.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@186 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-10 10:09:30 +00:00
Mark Buechler
3c952e4d0f - Allow for empty groups (groups with no users) for iSCSI.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@185 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-07 19:48:20 +00:00
Mark Buechler
cf4c66e1f4 - Fix really stupid mistake where config commits were using same path
for each device.
- Added option processing. The new API wants the option BLOCKIO,
  but SCST then shows the device having been opened with
  option BIO. We now warp BIO to BLOCKIO.
- Added the concept of handler aliases. Handler vdisk with
  option BLOCKIO shows as a handler of vdisk_blk. We now
  warp vdisk_blk to just vdisk.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@184 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-07 19:04:51 +00:00
Stanislaw Gruszka
fbb45ff0f7 - Do not print lot of info about notify event.
- Check bp->scst_tgt agains NULL only once when command is processed


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@183 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-05 11:38:19 +00:00
Stanislaw Gruszka
df886318a9 - Search bus only once when process scsi command (tmd).
- Pass to SCST port WWN as registration name.
- Avoid race condition when we receive new tmd and bp->scst_tmd
  may (or not) be NULL.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@182 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-05 10:20:44 +00:00
Stanislaw Gruszka
1db177f0dc Initialize with zeros fresh allocated ini_t.
Free low level driver memory on error.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@181 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-04 11:07:50 +00:00
Stanislaw Gruszka
e151feff2d Bugfix, do not zero resource which someone may actually use.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@180 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-01 11:44:37 +00:00
Stanislaw Gruszka
d31e5941e7 Avoid race conditions related with registration and unregistration hba's.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@179 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-31 13:01:22 +00:00
Stanislaw Gruszka
59cfad3952 Get irq number from PCI subsystem after irq routing mechanism (like ACPI)
set it up. Otherwise we get irq number from legacy BIOS range and proper irq 
(other number from PCI range) is not handled or handled by other driver - 
- VERY VERY BAD THINGS happen then. 


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@178 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-31 09:40:17 +00:00
Stanislaw Gruszka
0c7c155d7f Add workaround for devices which have broken autosense mode. It is compile
time selectable. In run-time it is turned on only for 24xx chipsets. With 
this workaround (hopply) we don't need to limit queue length (see comment 
in patch).


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@177 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-31 09:28:08 +00:00
Vladislav Bolkhovitin
304d24d34c Fixed incorrect #if statement. Reported by jzh800mail@126.com.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@176 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-29 16:16:30 +00:00
Vladislav Bolkhovitin
b56f1075b9 - Fixed make headers_check problem, reported by Doug Dumitru <doug@easyco.com>
- Improved rebuilt warning as suggested by Tomasz Chmielewski <mangoo@wpkg.org>
 - Minor cleanups 


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@175 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-29 15:07:40 +00:00