Commit Graph

706 Commits

Author SHA1 Message Date
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
Vladislav Bolkhovitin
0c22a4866a Minor changes based on comments from Tomasz Chmielewski <mangoo@wpkg.org>, Benjamin Yates <benjamin@rqdq.com> and Andy <AndrewL733@aol.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@174 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-29 09:52:07 +00:00
Vladislav Bolkhovitin
ef588acdf3 - Fixed several iSCSI RFC violations in TM area, added necessary support in the SCST core
- Some minor TM handling improvements
 - Some cleanups


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@173 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-28 17:32:31 +00:00
Vladislav Bolkhovitin
fd6744d33e scst_fileio renamed to scst_vdisk
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@172 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-27 10:49:04 +00:00
Vladislav Bolkhovitin
eafe9cfb46 Sample scstadmin .conf added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@171 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-27 10:01:48 +00:00
Vladislav Bolkhovitin
476900e0fe - Calling pre_exec() moved to the separate state
- Minor cleanups 


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@170 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-24 16:54:19 +00:00
Vladislav Bolkhovitin
1d694781ee scsi_tgt renamed to scst
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@169 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-24 16:40:56 +00:00
Vladislav Bolkhovitin
715cc7edb3 Fixed compilation problem when any module using net_get_page()/net_put_page() built as a module.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@168 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-23 16:00:57 +00:00
Vladislav Bolkhovitin
918c113858 - Updated to the latest IET (r137)
- ToDo note added


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@167 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-23 15:29:44 +00:00
Vladislav Bolkhovitin
d224057476 Copyrights updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@166 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-23 15:28:18 +00:00
Vladislav Bolkhovitin
044a6987d9 "iSCSI Enterprise" ranamed to "iSCSI-SCST"
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@165 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-16 09:19:34 +00:00
Vladislav Bolkhovitin
21f6a17d83 scsi_tgt.ko renamed to scst.ko
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@164 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-16 09:04:05 +00:00
Vladislav Bolkhovitin
5d4789c8c0 ISCSI-SCST updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@163 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-15 09:59:46 +00:00
Vladislav Bolkhovitin
e6a57baa14 The initial commit of iSCSI-SCST
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@162 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-15 09:28:54 +00:00
Vladislav Bolkhovitin
1d3da41d62 Minor fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@161 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-14 17:08:43 +00:00
Vladislav Bolkhovitin
56be023a73 - Version changed in scst_user_spec.txt
- Minor fixes


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@160 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-14 17:03:42 +00:00
Vladislav Bolkhovitin
83d65b018c - Call of pre_unreg_sess() moved to scst_mgmt_thread, because of scst_mutex deadlock with scst_user's pre_unreg_sess() handler
- scst_check_local_events() cleanups
 - In scst_user notification about aborted commands added, user space interface changed
 - Other minor fixes and cleanups


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@159 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-14 16:54:54 +00:00
Vladislav Bolkhovitin
89ca743fc6 Fixes a race, when an event comes on the driver unload, so DPC thread will try to use already half destroyed data.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@158 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-10 08:40:54 +00:00
Vladislav Bolkhovitin
07f8f231c1 - Docs updated
- Minor fix


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@157 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-08 09:52:23 +00:00