Commit Graph

500 Commits

Author SHA1 Message Date
Vladislav Bolkhovitin
f876bba99e The patch below fixes the following two checkpatch warnings:
WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
#290: FILE: net/core/utils.c:316:
+EXPORT_SYMBOL(net_get_page_callback);
WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
#291: FILE: net/core/utils.c:317:
+EXPORT_SYMBOL(net_put_page_callback);

This patch has been tested by verifying that the generated patch still applies
without warnings to the 2.6.25.17 kernel and that the patched kernel still
compiles.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@510 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-10-06 17:13:11 +00:00
Vladislav Bolkhovitin
f0da641f63 Web updates. Particularly, "Contributing" page was added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@509 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-10-03 18:09:00 +00:00
Vladislav Bolkhovitin
35754e7f26 Minor fixes and changes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@508 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-10-02 10:46:47 +00:00
Vladislav Bolkhovitin
8570113f7a VERIFY commands that comes with BYTCHK unset (i.e. no data to write)
shouldn't fail

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@506 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-09-30 18:15:06 +00:00
Vladislav Bolkhovitin
c1f04d3ad9 Sponsorship related updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@505 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-09-30 17:29:31 +00:00
Vladislav Bolkhovitin
34687a4030 As pointed out by Arne Redlich, size of dummy_data is too small as well as some checks in noop_out_start() are not needed
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@503 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-09-29 16:58:36 +00:00
Vladislav Bolkhovitin
2d8ac6b3ee Fixes possible oops in double reset UAs handling
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@500 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-09-26 16:03:50 +00:00
Vladislav Bolkhovitin
3785302eaa Handling of double reset UAs made more reliable
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@499 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-09-26 16:01:53 +00:00
Vladislav Bolkhovitin
a5ec0e4f51 Fixes broken NOP-Out with payload handling + minor fixed. Both problems derived from IET.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@498 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-09-26 15:59:47 +00:00
Vladislav Bolkhovitin
ef10d158a5 Minor changes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@497 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-09-25 09:21:44 +00:00
Dotan Barak
7a3b527b88 Belatedly put in a patch to avoid an OOPS that Stanley had
sent me but I hadn't integrated. Bad me.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@496 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-09-24 01:09:27 +00:00
Dotan Barak
508b07dbb0 Add more startup delay for 24XX cards when execing f/w (temp soln)
Add support for up through 2.6.25 (might even be good for 2.6.26)
Remove HBAAPI support. This never has worked well and I doubt anyone will miss it.
Remove files not pertinent SCST build.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@493 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-09-12 22:30:21 +00:00
Vladislav Bolkhovitin
2072470745 Patch from Gal Rosen <galr@storwize.com>:
Mailbox is 16 bits, and the shift should be of 2 bytes (16 bits) not 2 bits, and 1 byte not 1 bit



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@492 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-08-28 15:48:35 +00:00
Vladislav Bolkhovitin
9cf822569c Forgotten to be changed during 1.0.0 release externally seen SCST revision
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@490 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-08-20 15:33:18 +00:00
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