Commit Graph
204 Commits
Author SHA1 Message Date
Bart Van Assche 7b839ceaf7 Added to repository.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1916 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-03 15:33:45 +00:00
Vladislav Bolkhovitin 891c7d5b03 Fix BUG while enabling target mode remote port disappear:
In case if ELS LOGO command received on the target port,
the firmware can notify the driver about it in 3 different ways,
which handled differently by the driver (it doesn't clear when it use each way):
1. Immediate notify of login-affecting ELS command received (status code 0x46).
   The target driver terminate all commands received for the specified initiator
   (N_Port handle).
2. Asynchroneus event of port update.
   The target driver only print message, and in remark it's written that
   /* .mark_all_devices_lost() is handled by the initiator driver */
3. Immediate notify of port logged out (status code 0x29).
   The target driver terminate all commands received for the specified initiator
   (N_Port handle), and also mark all devices as lost.

In 1 and 2 everthing is OK. In 3 the target driver mark all devices as lost,
but never retrigger rescanning.

There are 2 solutions:
1. Not marking the devices as lost base on written in the async event case, and
   also base on the spec which says to only terminate all commands.
2. Mark all devices as lost and retrigger rescanning.

1 was implemented; delete all calls to mark_all_devices_lost() in qla2x00t.c, and
unexport symbol of this function in qla_os.c

Signed-off-by: Gal Rosen <galr@storwize.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1844 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-07-20 17:51:19 +00:00
Vladislav Bolkhovitin 6527947abb Fix "‘wrap’ may be used uninitialized" warning
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1816 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-07-13 12:24:13 +00:00
Vladislav Bolkhovitin 07b012ca56 [PATCH] Session reference count logic error in Qlogic target
When double session is found in q2t_create_sess the session object is updated, 
but after exiting from the function, if the session is not NULL the reference 
counter is decrement, become zero and then the session is deleted. 
As done while making a local session we need here to increment the reference 
count by calling to q2t_sess_get, because at exiting we call to q2t_sess_put. 
 
Signed-off-by: Gal Rosen <galr@storwize.com> 



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1798 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-29 10:33:41 +00:00
Vladislav Bolkhovitin eb16bf9163 Implement qlini_mode qla2xxx module parameter with ini_mode_force_reverse sysfs attribute instead of CONFIG_SCSI_QLA2XXX_TARGET_DISABLE_INI_MODE compile-time option for better flexibility.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1781 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-24 18:03:27 +00:00
Vladislav Bolkhovitin 78edc5afb9 Various cleanups and fixes after some errors injection tests. Particularly:
- ISCSI preliminary completed commands handling fixes
 - Write residuals cleanups and fixes
 - Interface to handle residuals and received from initiators data changed
 - BIDI cleanups and fixes.
 - All BIDI IN fields and functions renamed to OUT to be in line with the in-kernel convention

+ 

Docs updated



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1780 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-23 13:57:35 +00:00
Bart Van Assche ca97893240 Fixed checkpatch complaints about whitespace and one sparse warning.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1745 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-05 16:44:27 +00:00
Vladislav Bolkhovitin bf79920fa1 Version changed to 2.0-rc2
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1744 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-04 19:46:42 +00:00
Vladislav Bolkhovitin 8c05a7f350 Residuals and write residuals counting fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1742 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-04 19:43:02 +00:00
Vladislav Bolkhovitin 4bf0fb2871 Make BLOCKIO honor SYNCHRONIZE_CACHE commands
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1738 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-04 11:53:29 +00:00
Vladislav Bolkhovitin 417ba22149 Support for Persistent Reservations for qla2x00t added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1729 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-05-31 18:05:09 +00:00
Bart Van Assche e4a0b97871 Fixed recently introduced whitespace-complaints reported by checkpatch.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1718 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-05-26 18:47:11 +00:00
Bart Van Assche d3ed16cc1e Added to repository.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1716 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-05-26 18:20:26 +00:00
Vladislav Bolkhovitin b53e4cb4c1 Merge of the pr branch with additional fixes for problems found during extra testing
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1714 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-05-26 17:46:46 +00:00
Vladislav Bolkhovitin 0c0cfb4408 Pass-through dev handlers docs updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1709 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-05-24 10:00:22 +00:00
Bart Van Assche c99bd720c8 Removed trailing whitespace because checkpatch complained about it.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1671 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-04-30 10:49:28 +00:00
Vladislav Bolkhovitin a6270011ec - Fixing case when during SRRs ping-pong between initiator and target HW pending timeout gets triggered and the corresponding command deleted => oops on the next ping-pong turn
- Minor cleanups and fixes



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1662 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-04-28 16:54:22 +00:00
Vladislav Bolkhovitin 9449c43bc8 Docs updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1598 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-04-08 18:28:39 +00:00
Vladislav Bolkhovitin 4d5aaf047b Copyrights updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1585 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-04-06 08:57:48 +00:00
Vladislav Bolkhovitin 4e53e166b4 - Some reference leaks fixed
- Updated to compile on pre-2.6.25 kernels
 - Small docs updates



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1570 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-30 11:28:20 +00:00
Vladislav Bolkhovitin a93d5b593e Small cleanups and improvements
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1565 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-26 19:46:41 +00:00
Vladislav Bolkhovitin 08e7c3fba6 Great threads handling and performance improvements:
- io_context not needed anymore

 - Now threads pool can be per session

 - Each device now can have own type of threads pool with own threads count

+ docs updates and some cleanups and minor fixes.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1563 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-25 19:43:41 +00:00
Vladislav Bolkhovitin cdebb360f6 Small web fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1562 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-23 14:08:17 +00:00
Vladislav Bolkhovitin 70615e2dc3 dos2unix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1561 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-19 11:47:42 +00:00
Vladislav Bolkhovitin 1d4d2e85b5 Fix minor mistake
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1560 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-19 11:44:39 +00:00
Vladislav Bolkhovitin cbaab260f1 Add new scst_cmd_get_queue_type()/scst_cmd_set_queue_type() accessors and use them in target drivers instead of direct access to SCST's cmd->queue_type.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1553 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-17 19:11:18 +00:00
Vladislav Bolkhovitin dc3f4265c9 Key mark for explicit confirmations added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1546 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-17 12:56:35 +00:00
Vladislav Bolkhovitin ab5da422b8 - SysfsRules file added
- Other docs updated
 - ini_group renamed to ini_groups



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1542 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-13 11:59:24 +00:00
Vladislav Bolkhovitin 17db798a36 Make enable_target() interface more clear
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1539 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-10 11:56:15 +00:00
Vladislav Bolkhovitin 256b25cc0f - Dev handler sysfs interface changed to match new unified rules
- Docs updated
 - Other minor fixes, improvements and cleanups



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1538 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-09 19:36:48 +00:00
Bart Van Assche 5dc06c26de scripts/run-regression-tests works now for the 2.6.33 kernel too.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1525 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-01 17:32:38 +00:00
Vladislav Bolkhovitin 9c02ed26c7 Update for 2.6.33
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1524 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-01 15:56:31 +00:00
Vladislav Bolkhovitin 4d96089e50 Sysfs interface for targets made uniform. ISCSI-SCST made confirming the uniformity requirements. See README for details.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1511 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-17 19:07:54 +00:00
Vladislav Bolkhovitin b611a22ed0 Patch from Christian Motschke <motschke@itso-berlin.de>:
I had some problems compiling scst due to some bashisms in the Makefiles. As
you will know, Debian uses /bin/dash as default shell and /bin/sh is only a
link to /bin/dash. I can either change the default shell, (or in my opinion
the better solution) use SHELL=/bin/bash in the Makefile.
I have made a patch for the Makefiles in question (I hope, that are all
Makefiles).



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1496 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-10 19:32:31 +00:00
Vladislav Bolkhovitin 21476c4b9c Docs about QLA FW version updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1456 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-01-12 20:10:56 +00:00
Vladislav Bolkhovitin 4a2fcb870b - Logging cleanups. Particularly, TRACE_MGMT_MINOR level was removed
- Docs updates
 - Other minor fixes and cleanups



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1452 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-01-12 13:29:01 +00:00
Vladislav Bolkhovitin 23accb2e12 When converting the SCST source code into a series of upstream patches, SCST
is built via the kbuild infastructure. In kernel version 2.6.24 (commit
f77bf01425b11947eeb3b5b54685212c302741b8) the kbuild variable ccflags-y has
been introduced and the use of EXTRA_CFLAGS in kbuild makefiles has been
deprecated. The patch below converts SCST's in-tree makefiles such that these
use ccflags-y instead of EXTRA_CFLAGS when generating kernel patches for
kernel 2.6.24 or later.

Additionally, this patch removes the "default n" from the file
scst/kernel/in-tree/Kconfig.scst since this statement is superfluous.

The patch below has been tested by verifying the output of the following
command:
for ((v=23;v<=32;v++)); do rm -rf re* && scripts/run-regression-tests 2.6.$v; done

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1447 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-01-11 19:16:38 +00:00
Vladislav Bolkhovitin f519e2c265 Fix spelling typos.
Signed-off-by: Dotan Barak <dotanba@gmail.com>

with additional spelling fixes noticed by frank zago <fzago@systemfabricworks.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1396 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-12-16 11:35:12 +00:00
Vladislav Bolkhovitin 24482f5d41 Some locking cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1373 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-30 19:17:59 +00:00
Bart Van Assche e9e8884f41 Removed trailing whitespace.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1347 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-18 07:52:12 +00:00
Vladislav Bolkhovitin ef9469cefb Fix for recently introduced incorrectly set expected data direction
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1342 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-17 13:53:03 +00:00
Vladislav Bolkhovitin e63a865d23 BIDI fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1329 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-09 13:53:57 +00:00
Vladislav Bolkhovitin 02bdb07c7e Fixes possible crash, caused by q2t_sess_work_fn() called on several CPUs at time. Reported by Gal Rosen <galr@storwize.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1314 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-03 18:44:09 +00:00
Vladislav Bolkhovitin 2d25617396 Disable inlining in the debug build
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1310 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-02 18:37:53 +00:00
Vladislav Bolkhovitin 350542a8cf The patch below fixes the following category of checkpatch complaints:
WARNING: externs should be avoided in .c files

The patch below has been tested by rerunning the following command
and by verifying its output:
scripts/run-regression-tests 2.6.26.8

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1263 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-23 18:38:18 +00:00
Vladislav Bolkhovitin 36104c26c2 Remove -c sed option, because it isn't available on all systems
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1260 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-23 17:32:22 +00:00
Vladislav Bolkhovitin e972601875 Printk cleanups and minor fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1259 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-23 17:26:39 +00:00
Bart Van Assche 2d90ba1a1e Fixed a checkpatch complaint about trailing whitespace. Verified that the output of svn diff -x -w is empty for this modification.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1254 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-23 09:16:52 +00:00
Bart Van Assche 0af5e1b9e3 Fixed whitespace-related checkpatch errors. Verified that the output of
svn diff -x -w is empty for this changeset.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1253 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-23 06:59:33 +00:00
Vladislav Bolkhovitin 83c20d9344 Checkpatch and sparse cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1245 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-22 16:11:13 +00:00