8786 Commits

Author SHA1 Message Date
Dotan Barak
1257ac6ecf Make qlaispd sleep interruptible so as to now
skew process statistics.

Submitted by: Stanislaw Gruszka



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@489 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-08-16 17:05:07 +00:00
Dotan Barak
aef7fa62d9 Fixed the following sparse warnings:
warning: Using plain integer as NULL pointer
warning: obsolete struct initializer, use C99 syntax
warning: symbol 'hba_api_ioctl_operations' was not declared. Should it be static?

Submitted-by: Dotan Barak <dotanba@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@488 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-08-14 22:42:58 +00:00
Vladislav Bolkhovitin
9a94dbe2e6 Return value of the script depend on the return value of the
last executed function. 
 
In some functions (for example: start) the return value of the  
last executable is being returned but not being checked anywhere. 
If this last operaion fails, the return value shouldn't be 0. 
 
Signed-off-by: Dotan Barak <dotanba@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@487 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-08-13 18:09:23 +00:00
Vladislav Bolkhovitin
aab4e1d1ff Polishing for in-tree
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@486 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-08-01 17:59:05 +00:00
Vladislav Bolkhovitin
2828a3db2c Checkpath and compiler fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@485 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-08-01 17:03:24 +00:00
Vladislav Bolkhovitin
fdbe23b77c - Compiler made to show more warnings
- New warnings fixed



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@484 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-31 10:01:45 +00:00
Vladislav Bolkhovitin
5a5f1d3247 Compilation if target mode disabled fixed
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@483 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-29 17:19:58 +00:00
Vladislav Bolkhovitin
27e1f7aa1a Locking documented
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@482 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-29 17:18:08 +00:00
Vladislav Bolkhovitin
1504425c40 All empty lines due
to code commented out because inside #if LINUX_VERSION_CODE ... /
#endif is now really removed.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@481 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-28 18:19:34 +00:00
Vladislav Bolkhovitin
e678ead347 Fixed minor iSCSI standard violation
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@480 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-28 11:08:32 +00:00
Vladislav Bolkhovitin
65a0818201 SCST_HIGHMEM removed as not needed
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@479 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-25 16:46:27 +00:00
Vladislav Bolkhovitin
721c811332 Updated corespondingly to the latest changes in the driver (kernels <2.6.26 not supported anymore)
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@478 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-25 10:57:42 +00:00
Vladislav Bolkhovitin
e546852ee7 Added qla2x00t HOWTO written by Amit Mehta. Web pages updated correspondingly.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@477 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-24 16:23:44 +00:00
Vladislav Bolkhovitin
9004478071 Minor the kernel patch preparations fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@476 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-24 10:38:51 +00:00
Vladislav Bolkhovitin
73e27412fb - Update for 2.6.26
- Zero-copy feature, introduced by put_page_callback patch, made kernel compile time configurable via CONFIG_TCP_ZERO_COPY_TRANSFER_COMPLETION_NOTIFICATION option. If you upgrade from earlier versions, see the corresponding "[CAUTION]" e-mail in scst-devel mailing list about possible compatibility problems.
 - SRP target temporary removed from "all" and "install" the main Makefile targets, since it isn't compiled on 2.6.26
 - Minor fixes and cleanups



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@475 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-24 09:22:55 +00:00
Vladislav Bolkhovitin
91b9b7299f Fix for long standing protection problem in the initiator driver
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@474 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-24 09:04:05 +00:00
Vladislav Bolkhovitin
c006b05884 Update of the initiator driver to one from kernel 2.6.26. Sorry, the prior kernels not supported anymore, but backport patches are welcome.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@473 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-23 17:41:22 +00:00
Vladislav Bolkhovitin
84153b23b5 Minor changes and docs updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@471 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-22 15:32:42 +00:00
Vladislav Bolkhovitin
4ba14ede19 Fixes crash on module unload found by Gal Rosen
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@470 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-21 17:01:12 +00:00
Vladislav Bolkhovitin
0abc311754 - QLA: minor cleanups
- SCST_USER: microoptimization



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@469 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-18 17:02:13 +00:00
Vladislav Bolkhovitin
c4c6347217 SRPT 1.0.0 tag added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@468 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-18 11:08:44 +00:00
Vladislav Bolkhovitin
f510655081 Typo fixed
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@466 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-18 10:35:56 +00:00
Vladislav Bolkhovitin
0bd3fc6721 Use gfp_t instead of int to hold GFP_* masks.
Signed-off-by: Dotan Barak <dotanba@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@465 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-17 18:23:32 +00:00
Vladislav Bolkhovitin
5cfcd159d4 Minor scstadmin-related improvements
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@464 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-17 17:56:57 +00:00
Vladislav Bolkhovitin
f178c15256 Fix the following sparse warnings in several locations:
/scst/trunk/scst/src/dev_handlers/scst_dev_handler.h:54:40: warning:
incorrect type in argument 2 (different address spaces)
/scst/trunk/scst/src/dev_handlers/scst_dev_handler.h:54:40:
expected char const *buf
/scst/trunk/scst/src/dev_handlers/scst_dev_handler.h:54:40:    got
char const [noderef] <asn:1>*buf

Signed-off-by: Dotan Barak <dotanba@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@463 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-15 18:00:19 +00:00
Vladislav Bolkhovitin
dbfc32aaa0 Fix the following sparse warnings in several locations:
warning: incorrect type in argument 2 (different address spaces)
    expected void const [noderef] <asn:1>*from
    got void *<noident>
 warning: symbol '__dev_user_get_next_cmd' was not declared. Should it
be static?

One more optional fix (that i didn't do) is instead of casting
arg in the ioctl() function before every call to function
is to do the casting only once to a temporary variable and
send this variable to every function.

Signed-off-by: Dotan Barak <dotanba@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@462 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-15 17:55:02 +00:00
Vladislav Bolkhovitin
0b55f587a0 Fix the following sparse warnings in several locations:
warning: incorrect type in argument 2 (different address spaces)
    expected void const [noderef] <asn:1>*from
    got void *<noident>

One more optional fix (that i didn't do) is instead of casting
arg in the ioctl() function before every call to function
is to do the casting only once to a temporary variable and
send this variable to every function.

Signed-off-by: Dotan Barak <dotanba@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@461 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-15 17:52:16 +00:00
Mark Buechler
6abcdbd392 - Added init enable instructions to "make install" and README file.
- Changed VERSION on top-level Makefile to MODULE_VERSION to be more clear.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@460 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-14 20:00:18 +00:00
Mark Buechler
4b459b7648 Removed duplicate SCST.pm module file.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@459 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-14 19:44:04 +00:00
Vladislav Bolkhovitin
2973167777 SRPT release related updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@458 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-14 17:20:46 +00:00
Vu Pham
44f54e2625 srpt: converting makefile back to compile in scst tree
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@457 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-11 16:32:48 +00:00
Vladislav Bolkhovitin
3c5b177cd3 Change the 0 integer to NULL to fix the following sparse warning
(in locations that i miss in the previous patch):

/tmp/dotan/scst/trunk/scst/src/dev_handlers/scst_changer.c:147:34:
warning: Using plain integer as NULL pointer
/tmp/dotan/scst/trunk/scst/src/dev_handlers/scst_processor.c:147:36:
warning: Using plain integer as NULL pointer

Signed-off-by: Dotan Barak <dotanba@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@456 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-10 11:08:07 +00:00
Vladislav Bolkhovitin
b11bba3c84 Change the 0 integer to NULL to fix the following sparse warning:
/tmp/dotan/scst/trunk/scst/src/dev_handlers/scst_raid.c:147:31:
warning: Using plain integer as NULL pointer

Signed-off-by: Dotan Barak <dotanba@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@455 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-10 11:06:20 +00:00
Vladislav Bolkhovitin
eca92ea26b Fixed not clearly applied xxx2yyy
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@454 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-10 11:05:16 +00:00
Vladislav Bolkhovitin
cc28ddcdf2 Apparently the SCST code with debugging and/or tracing enabled compiles fine as
an external module. When applying the SCST kernel patch to the mainstream 
kernel tree with debugging and/or tracing enabled however, the resulting code
triggers a compiler error. This is because the symbols DEBUG and TRACING
conflict with symbols with the same named defined in unrelated kernel headers.
The patch below resolves these conflicts by renaming the following preprocessor 
symbols:
- DEBUG into CONFIG_SCST_DEBUG.
- DEBUG_DIGEST_FAILURES into CONFIG_SCST_ISCSI_DEBUG_DIGEST_FAILURES.
- DEBUG_OOM into CONFIG_SCST_DEBUG_OOM.
- DEBUG_RETRY into CONFIG_SCST_DEBUG_RETRY.
- DEBUG_SN into CONFIG_SCST_DEBUG_SN.
- DEBUG_TM into CONFIG_SCST_DEBUG_TM.
- EXTRACHECKS into CONFIG_SCST_EXTRACHECKS.
- SCST_HIGHMEM into CONFIG_SCST_HIGHMEM.
- STRICT_SERIALIZING into CONFIG_SCST_STRICT_SERIALIZING.
- TM_DBG_GO_OFFLINE into CONFIG_SCST_TM_DBG_GO_OFFLINE. Mapped 0/1 values
  into macro undefined / macro defined.
- TRACING into CONFIG_SCST_TRACING.
- USE_EXPECTED_VALUES into CONFIG_SCST_USE_EXPECTED_VALUES.
- In qla_isp/linux/isp_scst.c, renamed DEBUG into DEBUG_ISP_SCST.
- In qla_isp/..., renamed SCSI_TARGET in SCST_SCSI_TARGET.
- In qla_isp/..., renamed SCSI_TARGET_DEV in SCST_SCSI_TARGET_DEV.
Additionally, all CONFIG_SCSI_TARGET* macro's are renamed into CONFIG_SCST* in
order to avoid confusion between the STGT CONFIG-symbols and the SCST CONFIG-
symbols.

The following additional options are now configurable through Kconfig:
- CONFIG_SCST_ISCSI_DEBUG_DIGEST_FAILURES
- CONFIG_SCST_STRICT_SERIALIZING
- CONFIG_SCST_STRICT_SECURITY
- CONFIG_SCST_ALLOW_PASSTHROUGH_IO_SUBMIT_IN_SIRQ
- CONFIG_SCST_ABORT_CONSIDER_FINISHED_TASKS_AS_NOT_EXISTING
- CONFIG_SCST_USE_EXPECTED_VALUES
- CONFIG_SCST_DEBUG_OOM
- CONFIG_SCST_DEBUG_RETRY
- CONFIG_SCST_DEBUG_SN
- CONFIG_SCST_DEBUG_TM
- CONFIG_SCST_TM_DBG_GO_OFFLINE

The patch below has been verified as follows:
- Verified that the following command does not print any new warning messages:
  make -s clean && make -C srpt -s clean && make -s scst iscsi-scst && make -C srpt -s
- Verified as follows that the internal SCST patches still apply cleanly:
  for p in *patch; do patch -p0 --dry-run -f -s <$p; done
- Checked that the patch generated by generate-kernel-patch still applies
  cleanly to the 2.6.25.7 kernel, and that the patched kernel tree still
  compiles, installs and boots fine, that the iscsi-scst, ib_srpt,
  scst_disk and scst_vdisk modules still load, and that iSCSI communication
  still works fine. All SCST kernel configuration options that could be
  enabled have been enabled during this test.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@453 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-10 10:49:06 +00:00
Stanislaw Gruszka
103d3412f0 Let svn ignore symbolic links created when driver is built.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@452 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-10 07:05:47 +00:00
Stanislaw Gruszka
0622954292 Add KVER make parameter and remove Module{,s}.symvers on clean.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@451 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-10 06:44:28 +00:00
Vu Pham
0019c43728 srpt:
- changing Makefile to compile srpt out-of scst tree and in release mode
 - fixing checkpath warnings for kernel inclusion


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@450 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-10 00:04:49 +00:00
Vladislav Bolkhovitin
88260b17df The LSI SCST driver does not forward ABORT TASK SET task management messages to SCST. This patch fixes that.
Signed-off-by: Erik Habbinga <erikhabbinga@inphase-tech.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@449 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-09 17:38:34 +00:00
Vladislav Bolkhovitin
c9a7954315 Add the "static" qualifier to function that isn't being declared
(in h file) or exported to fix the following sparse warning:

/scst/trunk/iscsi-scst/kernel/iscsi.c:166:6: warning: symbol
'cmnd_free' was not declared. Should it be static?

Signed-off-by: Dotan Barak <dotanba@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@448 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-09 17:35:11 +00:00
Mark Buechler
908e8f76dd - Added a proper Makefile.PL to SCST::SCST so now we have a also a
proper man page.
- Renamed Changes to ChangeLog
- Updated README to include instructions for installing the perl module.
- Renamed SCST perl module directory tp scst-0.7.4



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@447 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-09 17:32:42 +00:00
Vladislav Bolkhovitin
f2c65365fd Change the name of local variable to prevent the following compilation warning:
/scst/trunk/iscsi-scst/kernel/iscsi.c:190:30: warning: symbol 'req'
shadows an earlier one
/scst/trunk/iscsi-scst/kernel/iscsi.c:182:29: originally declared here

Signed-off-by: Dotan Barak <dotanba@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@446 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-09 17:32:16 +00:00
Vladislav Bolkhovitin
1c9a2b3f4b The patch below implements the following changes:
- The script specialize-patch now acts as if #define INSIDE_KERNEL_TREE 1
  is effective.
- The script generate-kernel-patch now renames sBUG_ON() into BUG_ON()
  and sBUG() into BUG(). The same script removes the definitions of the
  sBUG_ON(), sBUG() and WARN_ON_ONCE() macro's from the header file
  scst_debug.h. The last macro is only removed for kernel versions later than
  2.6.19.

This patch has been tested as follows:
- Compared the output of the command "scripts/generate-kernel-patch 2.6.25"
  before and after the changes.
- Verified the newly generated patch with checkpatch. Checkpatch statistics
  are now as follows:
    521 WARNING: line over 80 characters
     12 WARNING: consider using strict_strtoul in preference to simple_strtoul
     10 WARNING: printk() should include KERN_ facility level
      3 WARNING: CVS style keyword markers, these will _not_ be updated
      2 WARNING: do not add new typedefs
      1 WARNING: Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt
- Verified that the generated kernel patch still applies cleanly to the
  2.6.25.10 kernel and that this kernel still compiles, installs and boots fine.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@445 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-09 17:28:36 +00:00
Vladislav Bolkhovitin
2853eeec6c The patch below contains the following changes:
- Substituted lun_t by uint64_t and removed typedef lun_t.
- Fixed the following class of checkpatch errors (two instances):
    ERROR: space required before the open parenthesis '('

This patch has been verified as follows:
- Checked that the following command still works and did not produce any
  new compiler warnings:
    make -s clean && make -C srpt -s clean && make -s scst iscsi-scst && make -C srpt -s
- Checked that the patch generated by generate-kernel-patch still applies
  cleanly to the 2.6.25.6 kernel, and that the patched kernel tree still
  compiles, installs and boots fine, and that the iscsi-scst, ib_srpt,
  scst_disk and scst_vdisk modules still load.
- Verified that checkpatch does not report any new warnings or errors.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@444 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-09 17:19:24 +00:00
Vladislav Bolkhovitin
7857b2532e - Forgotten piece of changes for returning to the release mode
- QLA_ISP targets in the main Makefile temporary disabled, since they don't support building with specified kernel version


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@443 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-09 16:58:56 +00:00
Vladislav Bolkhovitin
8c71b68271 - Version changed to 1.0.1
- Switched back to the debug mode



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@442 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-09 16:44:01 +00:00
Vladislav Bolkhovitin
8ce744d0ef Tag 1.0.0 added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@440 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-09 09:46:36 +00:00
Vladislav Bolkhovitin
9e0f4ea532 Cosmetics
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@439 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-09 09:14:21 +00:00
Vladislav Bolkhovitin
81c38b83cb Cosmetics
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@438 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-09 07:00:50 +00:00
Vladislav Bolkhovitin
0505a94f59 - Known issues added
- Cosmetics


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@437 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-09 06:53:41 +00:00