12 years agoUpdated Subversion ignore list.
bvassche [Fri, 7 Aug 2009 14:17:40 +0000 (14:17 +0000)]
Updated Subversion ignore list.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1025 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoUpdated SRPT documentation.
bvassche [Fri, 7 Aug 2009 14:14:19 +0000 (14:14 +0000)]
Updated SRPT documentation.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1024 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoPatch from Bart Van Assche <bart.vanassche@gmail.com>:
vlnb [Thu, 6 Aug 2009 17:18:28 +0000 (17:18 +0000)]
Patch from Bart Van Assche <bart.vanassche@gmail.com>:

Since SCST r979 the SRP target source code does no longer compile on RHEL /
CentOS systems where OFED has been installed. This is because OFED has its
own backported versions of the 2.6.20+ workqueue API and already includes a
definition of cancel_delayed_work_sync(). The patch below makes sure that on
RHEL 5 / CentOS 5 systems with OFED 1.4 installed the SCST definition of
cancel_delayed_work_sync() does not conflict with the OFED definition of
the same function.

The patch below has been tested by verifying that the SRPT source code
compiles and runs fine on CentOS 5.3 + OFED 1.4.1 and also on a system with
a vanilla kernel.

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1023 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago - Atomic move of a security name from one security group to another implemented
vlnb [Thu, 6 Aug 2009 16:28:23 +0000 (16:28 +0000)]
 - Atomic move of a security name from one security group to another implemented
 - Cleanups

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1020 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoFixed the following checkpatch complaint: return is not a function,
bvassche [Thu, 6 Aug 2009 13:42:28 +0000 (13:42 +0000)]
Fixed the following checkpatch complaint: return is not a function,
parentheses are not required.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1019 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoWeb updates
vlnb [Thu, 6 Aug 2009 11:49:05 +0000 (11:49 +0000)]
Web updates

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1018 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoAutomatic sessions reassignment implemented
vlnb [Thu, 6 Aug 2009 11:47:18 +0000 (11:47 +0000)]
Automatic sessions reassignment implemented

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1017 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoFixed data races on manipulation of the srpt_devices list by eliminating
bvassche [Thu, 6 Aug 2009 10:05:10 +0000 (10:05 +0000)]
Fixed data races on manipulation of the srpt_devices list by eliminating
this list. Only the number of IB devices is relevant for the SRPT
implementation. Introduced a new counter that tracks the number of IB

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1016 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago- Refactoring: split srpt_ch_qp_rtr_rts() into two functions, namely
bvassche [Thu, 6 Aug 2009 09:12:37 +0000 (09:12 +0000)]
- Refactoring: split srpt_ch_qp_rtr_rts() into two functions, namely
  srpt_ch_qp_rtr() and srpt_ch_qp_rts().
- Replaced dynamic memory allocation (kmalloc()/kfree()) in the aforementioned
  two functions by stack allocation.
- Compiles again on pre-2.6.22 kernels (RHEL / CentOS systems).

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1015 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago- Fixed race conditions related to channel state manipulation.
bvassche [Wed, 5 Aug 2009 19:48:16 +0000 (19:48 +0000)]
- Fixed race conditions related to channel state manipulation.
- Inlined srpt_disconnect_channel().
- Modified error handling coding style in srpt_cm_req_recv() to the usual
  kernel coding style: upon error, jump to the error handling code.
- Added more comments.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1014 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoMinor docs update
vlnb [Wed, 5 Aug 2009 09:50:11 +0000 (09:50 +0000)]
Minor docs update

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1013 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago- Bug fix: if processing of any of the SRP task management functions by
bvassche [Tue, 4 Aug 2009 18:45:46 +0000 (18:45 +0000)]
- Bug fix: if processing of any of the SRP task management functions by
  the SCST core fails (abort task, LUN reset, ...), an SRP_RSP PDU is
  now sent back to the initiator.
- Added more debug tracing statements.
- Improved readability of some parts of the source code.
- Added more comments.
- Partially reverted one hunk of r1003: while casting an unsigned 64-bit
  value to the type u64 and printing such values via %llx works fine on
  x86 systems, the same code triggers a compiler warning on PowerPC
  systems. So while r1003 changed some (unsigned long long) casts to (u64)
  casts, this revision changes these back to (unsigned long long) casts.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1012 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoWeb updates
vlnb [Tue, 4 Aug 2009 17:50:43 +0000 (17:50 +0000)]
Web updates

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1011 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoA minor SAM violation fixed.
vlnb [Tue, 4 Aug 2009 17:17:16 +0000 (17:17 +0000)]
A minor SAM violation fixed.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1010 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoMinor typo noticed by Bart Van Assche <bart.vanassche@gmail.com>
vlnb [Tue, 4 Aug 2009 16:59:09 +0000 (16:59 +0000)]
Minor typo noticed by Bart Van Assche <bart.vanassche@gmail.com>

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1009 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoPatch from Smadar Gonen <smadar.gn@gmail.com>:
vlnb [Tue, 4 Aug 2009 11:59:15 +0000 (11:59 +0000)]
Patch from Smadar Gonen <smadar.gn@gmail.com>:

The following fixes were made:

 - Use monotonic clock as time source instead of a real-time clock so change of system time will not affect calculation.

 - Init scst_time to 0 + minor display fix.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1007 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoWeb updates
vlnb [Tue, 4 Aug 2009 11:10:18 +0000 (11:10 +0000)]
Web updates

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1006 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoFixed race conditions on RDMA channel manipulations found via source reading:
bvassche [Mon, 3 Aug 2009 16:00:36 +0000 (16:00 +0000)]
Fixed race conditions on RDMA channel manipulations found via source reading:
- Added a second argument to srpt_find_channel() that specified whether or not
  the channel should be removed from the channel list if found.
- Moved list_del() statement from the body of the srpt_release_channel()
  function to its callers.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1005 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoMultiple cosmetic source code changes.
bvassche [Mon, 3 Aug 2009 15:06:00 +0000 (15:06 +0000)]
Multiple cosmetic source code changes.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1004 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago- Enabled the LUN reset task management function.
bvassche [Sun, 2 Aug 2009 18:57:48 +0000 (18:57 +0000)]
- Enabled the LUN reset task management function.
- Changed return type of srpt_release_channel() from int to void
  because the return value did depend in a trivial way on the function
  arguments. Changed the return type of srpt_find_and_release_channel()
  and several of its callers also from int to void. Instead
  srpt_cm_handler() now directly sets its own return value.
- Converted a list_for_each_entry_safe() into a list_for_each_entry() loop
  because no elements are added or deleted in the loop body.
- Converted debug-printk() statements into TRACE_DBG().
- Changed indentation of one statement from 12 to 16 (was not reported by

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1003 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoAdded even more comments.
bvassche [Sun, 2 Aug 2009 18:45:40 +0000 (18:45 +0000)]
Added even more comments.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1002 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoAdded command-line option -f, which allows to skip the test whether there is still...
bvassche [Sun, 2 Aug 2009 18:04:21 +0000 (18:04 +0000)]
Added command-line option -f, which allows to skip the test whether there is still data present.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1001 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoWhitespace-only change: fixed a checkpatch complaint.
bvassche [Sat, 1 Aug 2009 06:50:36 +0000 (06:50 +0000)]
Whitespace-only change: fixed a checkpatch complaint.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1000 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoOnly call scst_tgt_cmd_done() if scst_rx_data() has not been called.
bvassche [Sat, 1 Aug 2009 06:03:55 +0000 (06:03 +0000)]
Only call scst_tgt_cmd_done() if scst_rx_data() has not been called.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@999 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoFixed the issue that 'rmmod ib_srpt' with ongoing SRP I/O could trigger
bvassche [Fri, 31 Jul 2009 11:40:10 +0000 (11:40 +0000)]
Fixed the issue that 'rmmod ib_srpt' with ongoing SRP I/O could trigger
a deadlock.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@998 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoWhitespace-only changes: fixed checkpatch complaints introduced in the previous commit.
bvassche [Fri, 31 Jul 2009 11:33:26 +0000 (11:33 +0000)]
Whitespace-only changes: fixed checkpatch complaints introduced in the previous commit.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@997 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoAdded more comments.
bvassche [Fri, 31 Jul 2009 11:27:54 +0000 (11:27 +0000)]
Added more comments.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@996 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoPatch from Smadar Gonen <smadar.gn@gmail.com> fixing some minor corner cases
vlnb [Fri, 31 Jul 2009 10:52:40 +0000 (10:52 +0000)]
Patch from Smadar Gonen <smadar.gn@gmail.com> fixing some minor corner cases

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@994 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoUpgraded kernel versions and to and respectively.
bvassche [Fri, 31 Jul 2009 06:21:31 +0000 (06:21 +0000)]
Upgraded kernel versions and to and respectively.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@993 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago- Fixed a buffer overrun: a service entry name occupying 35 bytes was
bvassche [Thu, 30 Jul 2009 12:48:06 +0000 (12:48 +0000)]
- Fixed a buffer overrun: a service entry name occupying 35 bytes was
  written into a buffer with a size of 32 bytes. Enlarged the buffer
  to 36 bytes.
- Converted sprintf() calls to snprintf() calls.
- Added more TRACE_ENTRY() / TRACE_EXIT() statements.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@992 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoMoved /sys/class/infiniband_srpt/trace_level to
bvassche [Thu, 30 Jul 2009 08:32:23 +0000 (08:32 +0000)]
Moved /sys/class/infiniband_srpt/trace_level to
/proc/scsi_tgt/ib_srpt/trace_level such that the behavior of the
ib_srpt target is consistent with that of other SCST drivers.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@991 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoCompiles again with tracing disabled.
bvassche [Thu, 30 Jul 2009 06:38:15 +0000 (06:38 +0000)]
Compiles again with tracing disabled.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@990 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoShould have been included in the previous commit (r988).
bvassche [Wed, 29 Jul 2009 18:14:41 +0000 (18:14 +0000)]
Should have been included in the previous commit (r988).

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@989 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago- Fixed a race condition found via source reading: srpt_remove_one() did not
bvassche [Wed, 29 Jul 2009 16:57:00 +0000 (16:57 +0000)]
- Fixed a race condition found via source reading: srpt_remove_one() did not
  wait until srpt_refresh_port_work() finished. This race condition could be
  triggered during module removal.
- Added a kernel module parameter called "trace_flag" that allows to set the
  trace flags for the ib_srpt module before module initialization starts.
- Added sysfs variable /sys/class/infiniband_srpt/trace_level that allows to
  display and to modify the enabled trace flags in a human-readable form.
- Added several TRACE_ENTRY() / TRACE_EXIT() statements.
- Added more comments.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@988 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoWhitespace-only changes: removed trailing whitespace because checkpatch complained...
bvassche [Wed, 29 Jul 2009 15:46:46 +0000 (15:46 +0000)]
Whitespace-only changes: removed trailing whitespace because checkpatch complained about it.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@987 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago - Possibility to operate with single size entries as well as control of the reclamat...
vlnb [Wed, 29 Jul 2009 12:49:17 +0000 (12:49 +0000)]
 - Possibility to operate with single size entries as well as control of the reclamation time added to the SGV caache

 - Fileio_tgt updated to be able to use those neww facilities

 - Docs updated. Particulary, a new dociment describing the SGV cache added

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@986 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoWeb updates
vlnb [Tue, 28 Jul 2009 11:01:22 +0000 (11:01 +0000)]
Web updates

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@985 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoPatch from Gal Rosen <galr@storwize.com>:
vlnb [Tue, 28 Jul 2009 09:29:12 +0000 (09:29 +0000)]
Patch from Gal Rosen <galr@storwize.com>:

I suggest the attached patch for the issue of disabling target mode
while I/O.

Fix BUG in qla target. Set ha->tgt to NULL in wrong place (when
disabling target mode). This cause to unfinished commands, and the echo
command to disabling the target mode to stuck. scst_tgt_cmd_done never
called because the ha->tgt was set to NULL before it should be. ha->tgt
already set to NULL in q2t_target_release after all task managements
finished and all commands were cleaned, so the fix just remove the set
from q2t_host_action.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@984 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoWhitespace-only change: fixed a recently introduced checkpatch error
bvassche [Tue, 28 Jul 2009 07:35:38 +0000 (07:35 +0000)]
Whitespace-only change: fixed a recently introduced checkpatch error
about trailing whitespace.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@983 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoThe most recent version of the sparse static source code checking tool does
vlnb [Mon, 27 Jul 2009 17:52:19 +0000 (17:52 +0000)]
The most recent version of the sparse static source code checking tool does
now report functions that are called with a lock held but that are missing
__acquires() and __releases() annotations. The patch below adds such
annotations and makes the following sparse warnings disappear:

drivers/scst/iscsi-scst/iscsi.c:2861:9: warning: context imbalance in 'iscsi_check_send_delayed_tm_resp' - unexpected unlock
drivers/scst/iscsi-scst/nthread.c:1614:17: warning: context imbalance in 'scst_do_job_wr' - unexpected unlock
drivers/scst/iscsi-scst/iscsi.c:2861:9: warning: context imbalance in 'iscsi_check_send_delayed_tm_resp' - unexpected unlock
drivers/scst/iscsi-scst/nthread.c:1614:17: warning: context imbalance in 'scst_do_job_wr' - unexpected unlock
drivers/scst/scst_local/scst_local.c:554:30: warning: context imbalance in 'scst_local_queuecommand' - unexpected unlock

The patch below has been tested by comparing the output of
"scripts/run-regression-tests" before and after the patch was applied.

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@982 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoMinor web fixes
vlnb [Mon, 27 Jul 2009 17:49:19 +0000 (17:49 +0000)]
Minor web fixes

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@981 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago - Implemented abort on timeout of stuck in the firmware commands
vlnb [Mon, 27 Jul 2009 17:33:48 +0000 (17:33 +0000)]
 - Implemented abort on timeout of stuck in the firmware commands
 - Minor cleanups

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@980 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years ago - Implemented abort on timeout of stuck in tgt hardware commands
vlnb [Mon, 27 Jul 2009 16:59:49 +0000 (16:59 +0000)]
 - Implemented abort on timeout of stuck in tgt hardware commands

 - Cleanups

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@979 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoFix double free
vlnb [Mon, 27 Jul 2009 16:19:10 +0000 (16:19 +0000)]
Fix double free

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@977 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoWEB upates
vlnb [Mon, 27 Jul 2009 11:39:05 +0000 (11:39 +0000)]
WEB upates

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@976 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoRemoved a trailing space because checkpatch complained about it.
bvassche [Sat, 25 Jul 2009 06:49:04 +0000 (06:49 +0000)]
Removed a trailing space because checkpatch complained about it.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@975 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoUpdated kernel versions to and to
bvassche [Sat, 25 Jul 2009 06:45:35 +0000 (06:45 +0000)]
Updated kernel versions to and to

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@974 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoFixes a race, which can lead to a hang, if a user space handler with >1 devices gets...
vlnb [Fri, 24 Jul 2009 17:38:40 +0000 (17:38 +0000)]
Fixes a race, which can lead to a hang, if a user space handler with >1 devices gets killed under load

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@972 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoVarious buglets- hopefully now fixed the case where 24XX fails to start.
zorko [Thu, 23 Jul 2009 15:37:47 +0000 (15:37 +0000)]
Various buglets- hopefully now fixed the case where 24XX fails to start.
Some stuff for multiple channels and internal f/w.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@971 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoSome controllers seems to hang after receiving MODE SENSE(6) command. This patch...
vlnb [Wed, 22 Jul 2009 10:12:09 +0000 (10:12 +0000)]
Some controllers seems to hang after receiving MODE SENSE(6) command. This patch adds sending MODE SENSE(10) instead, which can work better. But since this is remained untested, this code is disabled for now.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@970 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoWhitespace-only changes: fixed two recently introduced checkpatch errors (code should...
bvassche [Wed, 22 Jul 2009 06:31:30 +0000 (06:31 +0000)]
Whitespace-only changes: fixed two recently introduced checkpatch errors (code should be indented by tabs / trailing whitespace).

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@969 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoPatch from Smadar Gonen <smadar.gn@gmail.com> with some modifications:
vlnb [Tue, 21 Jul 2009 17:52:50 +0000 (17:52 +0000)]
Patch from Smadar Gonen <smadar.gn@gmail.com> with some modifications:

Minor fixes and cleanups

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@968 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoPatch from Smadar Gonen <smadar.gn@gmail.com>
vlnb [Tue, 21 Jul 2009 17:47:05 +0000 (17:47 +0000)]
Patch from Smadar Gonen <smadar.gn@gmail.com>

Implements some useful scst_user statistic in /proc

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@967 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoUpdated kernel versions and to and respectively.
bvassche [Tue, 21 Jul 2009 07:58:24 +0000 (07:58 +0000)]
Updated kernel versions and to and respectively.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@966 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoFixes incorrect errors reporting on devices unregistration.
vlnb [Mon, 20 Jul 2009 10:34:54 +0000 (10:34 +0000)]
Fixes incorrect errors reporting on devices unregistration.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@964 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoWhen compiling a 2.6.30 or kernel with the
vlnb [Mon, 20 Jul 2009 09:47:36 +0000 (09:47 +0000)]
When compiling a 2.6.30 or kernel with the
scst_exec_req_fifo-2.6.30.patch applied, the following warning is printed
many times by the compiler:

include/linux/scatterlist.h:223: warning: ‘enum km_type’ declared
inside parameter list
include/linux/scatterlist.h:223: warning: its scope is only this
definition or declaration, which is probably not what you want
include/linux/scatterlist.h:226: warning: ‘enum km_type’ declared
inside parameter list

The patch below fixes these compiler warnings by adding a forward declaration
for "enum km_type" in include/linux/scatterlist.h.

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@963 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoAdded a check for the device size before starting the test.
bvassche [Sun, 19 Jul 2009 07:18:51 +0000 (07:18 +0000)]
Added a check for the device size before starting the test.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@962 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoVarious improvements:
bvassche [Sat, 18 Jul 2009 11:55:59 +0000 (11:55 +0000)]
Various improvements:
- Display a clear warning if the user running this script does not have
  sufficient privileges to drop the VM caches.
- Made sure that header and data columns are aligned if dd reports an
  error, e.g. when trying to perform direct I/O on a device that does
  not support direct I/O.
- Made sure that header and data columns are aligned when running a
  read-only test (-r).

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@961 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoFixes race on a scst_user device cleanup
vlnb [Fri, 17 Jul 2009 10:42:32 +0000 (10:42 +0000)]
Fixes race on a scst_user device cleanup

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@958 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoAdded support for partial evaluation of && and || expressions.
bvassche [Wed, 15 Jul 2009 15:55:20 +0000 (15:55 +0000)]
Added support for partial evaluation of && and || expressions.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@957 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoFixes possible crash if sgv pools destroyed too early.
vlnb [Tue, 14 Jul 2009 16:56:07 +0000 (16:56 +0000)]
Fixes possible crash if sgv pools destroyed too early.

Reported by Smadar Gonen <smadar.gn@gmail.com>

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@955 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoUpdated version of scsi_exec_async() with important fixes. Particularly:
vlnb [Tue, 14 Jul 2009 15:39:57 +0000 (15:39 +0000)]
Updated version of scsi_exec_async() with important fixes. Particularly:

 - A bunch of memory corruptions was fixed
 - For cases if scst_exec_req_fifo-2.6.30+.patch not applied, implementation from the patch was added to scst_lib.c. So, now for 2.6.30+ kernels scst_exec_req_fifo-2.6.X.patch is optional

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@953 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoOn ppc64, gcc 4.4 spews lots of..
vlnb [Tue, 14 Jul 2009 11:06:17 +0000 (11:06 +0000)]
On ppc64, gcc 4.4 spews lots of..

drivers/scsi/qla2xxx/qla_def.h:1485:7: warning: "__LITTLE_ENDIAN" is not defined

Signed-off-by: Dave Jones <davej@redhat.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@952 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoWeb fixes
vlnb [Tue, 14 Jul 2009 10:50:18 +0000 (10:50 +0000)]
Web fixes

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@951 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoMinor web fixes
vlnb [Mon, 13 Jul 2009 11:59:25 +0000 (11:59 +0000)]
Minor web fixes

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@950 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoWeb updates
vlnb [Mon, 13 Jul 2009 11:37:28 +0000 (11:37 +0000)]
Web updates

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@949 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoThe patch below fixes the following checkpatch complaint:
vlnb [Fri, 10 Jul 2009 18:21:11 +0000 (18:21 +0000)]
The patch below fixes the following checkpatch complaint:
  ERROR: return is not a function, parentheses are not required
A side effect of this patch is that it makes sure that the return value of
is_report_sg_limitation() is either 0 or 1, and no other integer value.

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@948 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoRemoved trailing whitespace.
bvassche [Fri, 10 Jul 2009 12:10:41 +0000 (12:10 +0000)]
Removed trailing whitespace.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@947 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoRemoves unneeded mutex_lock(&scst_mutex), which can't be done on atomic or SIRQ context
vlnb [Fri, 10 Jul 2009 11:56:51 +0000 (11:56 +0000)]
Removes unneeded mutex_lock(&scst_mutex), which can't be done on atomic or SIRQ context

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@946 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoFixes wrong usage of parent request's fields in the response.
vlnb [Thu, 9 Jul 2009 18:38:54 +0000 (18:38 +0000)]
Fixes wrong usage of parent request's fields in the response.

Reported by Erez Zilber <erezzi.list@gmail.com>

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@945 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoAdds export of blk_rq_unmap_kern_sg(), which is needed if SCSI built as a module.
vlnb [Thu, 9 Jul 2009 17:48:28 +0000 (17:48 +0000)]
Adds export of blk_rq_unmap_kern_sg(), which is needed if SCSI built as a module.

Noticed by Bart Van Assche <bart.vanassche@gmail.com>

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@944 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoSimplified and generalized code for processing in-tree kernel patches.
bvassche [Thu, 9 Jul 2009 07:01:57 +0000 (07:01 +0000)]
Simplified and generalized code for processing in-tree kernel patches.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@943 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoWhitespace-only change: fixed an error reported by checkpatch.
bvassche [Thu, 9 Jul 2009 07:00:57 +0000 (07:00 +0000)]
Whitespace-only change: fixed an error reported by checkpatch.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@942 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoWhitespace-only changes: fixed two errors reported by checkpatch.
bvassche [Thu, 9 Jul 2009 06:29:58 +0000 (06:29 +0000)]
Whitespace-only changes: fixed two errors reported by checkpatch.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@941 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoAdded kernel.
bvassche [Wed, 8 Jul 2009 17:51:24 +0000 (17:51 +0000)]
Added kernel.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@939 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoUpdate for 2.6.30
vlnb [Wed, 8 Jul 2009 17:27:30 +0000 (17:27 +0000)]
Update for 2.6.30

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@938 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoEmulex related web updates
vlnb [Wed, 8 Jul 2009 17:11:41 +0000 (17:11 +0000)]
Emulex related web updates

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@937 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoMore web updates
vlnb [Wed, 8 Jul 2009 11:54:44 +0000 (11:54 +0000)]
More web updates

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@936 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoWeb updates
vlnb [Wed, 8 Jul 2009 11:49:55 +0000 (11:49 +0000)]
Web updates

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@935 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoOnly use LOAD_RISC_RAM_EXTENDED if you have to. This just might
zorko [Tue, 7 Jul 2009 17:05:06 +0000 (17:05 +0000)]
Only use LOAD_RISC_RAM_EXTENDED if you have to. This just might
fix some of the 24XX and 23XX startup problems that have been
reported but are hard to predictably reproduce.

Do some minor sync with the mainline.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@934 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoAdded command-line option -t, which allows to drop the caches of the target too....
bvassche [Mon, 6 Jul 2009 17:43:47 +0000 (17:43 +0000)]
Added command-line option -t, which allows to drop the caches of the target too. Added dd flag conv=notrunc to write performance tests, which makes running blockdev-perftest on files instead of devices a lot easier.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@933 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoFixed a bug that was introduced in the previous revision: the script entered an infin...
bvassche [Fri, 3 Jul 2009 19:54:09 +0000 (19:54 +0000)]
Fixed a bug that was introduced in the previous revision: the script entered an infinite loop when the size specified through -s was smaller than 64MB.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@932 d57e44dd-8a1f-0410-8b47-8ef2f437770f

12 years agoFixed the following issue reported by lockdep:
bvassche [Fri, 3 Jul 2009 19:15:15 +0000 (19:15 +0000)]
Fixed the following issue reported by lockdep:

 ------------[ cut here ]------------
WARNING: at kernel/lockdep.c:2197 trace_hardirqs_on_caller+0x14c/0x1b0()
Call Trace:
 [<ffffffff8024636f>] warn_slowpath+0xaf/0x110
 [<ffffffff8026e1be>] ? check_usage_forwards+0x5e/0xc0
 [<ffffffff8026e818>] ? mark_lock+0x538/0xcc0
 [<ffffffff802ccfc1>] ? cache_alloc_refill+0x191/0x2b0
 [<ffffffff804ee62b>] ? _spin_unlock_irq+0x2b/0x40
 [<ffffffff8026f23c>] trace_hardirqs_on_caller+0x14c/0x1b0
 [<ffffffff8026f2ad>] trace_hardirqs_on+0xd/0x10
 [<ffffffff804ee62b>] _spin_unlock_irq+0x2b/0x40
 [<ffffffffa0657711>] srpt_handle_new_iu+0x2f1/0x630 [ib_srpt]
 [<ffffffffa0657bab>] srpt_completion+0x15b/0x300 [ib_srpt]
 [<ffffffffa04321f2>] mlx4_ib_cq_comp+0x12/0x20 [mlx4_ib]
 [<ffffffffa01f42aa>] mlx4_cq_completion+0x3a/0x80 [mlx4_core]
 [<ffffffffa01f5585>] mlx4_eq_int+0x295/0x2a0 [mlx4_core]
 [<ffffffffa01f561f>] mlx4_msi_x_interrupt+0xf/0x20 [mlx4_core]
 [<ffffffff80288565>] handle_IRQ_event+0x35/0x70
 [<ffffffff8028a144>] handle_edge_irq+0xb4/0x150
 [<ffffffff8020eb71>] do_IRQ+0x81/0x110
 [<ffffffff8020ced3>] ret_from_intr+0x0/0xf
 [<ffffffff803b1a88>] ? cfb_imageblit+0x578/0x5a0
 [<ffffffff803aaf09>] ? bit_putcs+0x3d9/0x6a0
 [<ffffffff8026f252>] ? trace_hardirqs_on_caller+0x162/0x1b0
 [<ffffffff8026f2ad>] ? trace_hardirqs_on+0xd/0x10
 [<ffffffff804eb425>] ? thread_return+0x3d/0x928
 [<ffffffff803ab49b>] ? soft_cursor+0x1ab/0x220
 [<ffffffff803aaac7>] ? bit_cursor+0x647/0x6b0
 [<ffffffff803a4a9b>] ? fbcon_putcs+0x1cb/0x320
 [<ffffffff803aab30>] ? bit_putcs+0x0/0x6a0
 [<ffffffff803a7506>] ? fbcon_redraw+0x166/0x1d0
 [<ffffffff803a7770>] ? fbcon_scroll+0x200/0xd50
 [<ffffffff803f7af0>] ? scrup+0x100/0x110
 [<ffffffff803f7c7d>] ? lf+0x6d/0x70
 [<ffffffff803fbb1d>] ? do_con_write+0x9dd/0x2300
 [<ffffffff8026eff6>] ? mark_held_locks+0x56/0xa0
 [<ffffffff8026f252>] ? trace_hardirqs_on_caller+0x162/0x1b0
 [<ffffffff803fd499>] ? con_write+0x19/0x30
 [<ffffffff803ea683>] ? n_tty_write+0x383/0x480
 [<ffffffff8026f2ad>] ? trace_hardirqs_on+0xd/0x10
 [<ffffffff8023d7d0>] ? default_wake_function+0x0/0x10
 [<ffffffff803e76f4>] ? tty_write+0x1b4/0x280
 [<ffffffff803ea300>] ? n_tty_write+0x0/0x480
 [<ffffffff802d312b>] ? vfs_write+0xcb/0x170
 [<ffffffff802d32c0>] ? sys_write+0x50/0x90
 [<ffffffff8020c51b>] ? system_call_fastpath+0x16/0x1b
 ---[ end trace 954f4d9b9b9cdecc ]---

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@931 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoUpdated kernel versions.
bvassche [Fri, 3 Jul 2009 10:30:08 +0000 (10:30 +0000)]
Updated kernel versions.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@930 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoRemoved trailing whitespace.
bvassche [Wed, 1 Jul 2009 10:47:33 +0000 (10:47 +0000)]
Removed trailing whitespace.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@929 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoSmall performance optimization: wake up IO/processing threads in LIFO order.
vlnb [Tue, 30 Jun 2009 16:13:48 +0000 (16:13 +0000)]
Small performance optimization: wake up IO/processing threads in LIFO order.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@928 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoBackported versions of the context readahead patch http://lkml.org/lkml/2009/4/12...
vlnb [Tue, 30 Jun 2009 10:45:48 +0000 (10:45 +0000)]
Backported versions of the context readahead patch lkml.org/lkml/2009/4/12/9, which improve performance of Linux read-ahead algorithm.

Thanks to Wu Fengguang for backporting!

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@927 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoCompiles now against vanilla 2.6.18 kernel headers.
bvassche [Mon, 29 Jun 2009 19:00:10 +0000 (19:00 +0000)]
Compiles now against vanilla 2.6.18 kernel headers.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@926 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoPatch from Klaus Hochlehnert <Mailings@kh-dev.de>:
vlnb [Mon, 29 Jun 2009 18:11:58 +0000 (18:11 +0000)]
Patch from Klaus Hochlehnert <Mailings@kh-dev.de>:

Here's the readahead patch for Ubuntu 8.04 - 2.6.24 kernel

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@925 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoPorted from bash to sh and from GNU awk to POSIX awk. Runs now correctly on an unmodi...
bvassche [Mon, 29 Jun 2009 17:55:32 +0000 (17:55 +0000)]
Ported from bash to sh and from GNU awk to POSIX awk. Runs now correctly on an unmodified Debian or Ubuntu system.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@924 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoAdd some conditional code to handle kernel versions less that 2.6.25 that
richardsharpe [Fri, 26 Jun 2009 00:54:57 +0000 (00:54 +0000)]
Add some conditional code to handle kernel versions less that 2.6.25 that
can send a request as a non scatterlist. If we get one, we create a single
element scatterlist and hand that on to SCST.

This costs some extra space in the structure I use to keep track of requests
and the done function, but only on those versions for which it is possible.
For real kernels it is scatterlists all the way down young man.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@922 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoRemove an ugly hack that was left in just in case. It has been confirmed to
richardsharpe [Wed, 24 Jun 2009 23:10:53 +0000 (23:10 +0000)]
Remove an ugly hack that was left in just in case. It has been confirmed to
be not needed.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@921 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoCleanup of use of READ ONLY flag
vlnb [Wed, 24 Jun 2009 12:40:28 +0000 (12:40 +0000)]
Cleanup of use of READ ONLY flag

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@918 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoFix compilation on linux kernels 2.6.28, 29 and 30.
swgruszka [Tue, 23 Jun 2009 17:29:30 +0000 (17:29 +0000)]
Fix compilation on linux kernels 2.6.28, 29 and 30.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@917 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoCleanup: sess->shutdown_compl made on stack
vlnb [Tue, 23 Jun 2009 12:15:49 +0000 (12:15 +0000)]
Cleanup: sess->shutdown_compl made on stack

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@916 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoFix possible crash in scst_copy_sg()
vlnb [Fri, 19 Jun 2009 16:32:26 +0000 (16:32 +0000)]
Fix possible crash in scst_copy_sg()

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@914 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoDisplay which kernel headers are used during compilation of the SRP target driver.
bvassche [Thu, 18 Jun 2009 18:35:05 +0000 (18:35 +0000)]
Display which kernel headers are used during compilation of the SRP target driver.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@913 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years ago1. Fixed deadlock issue.
andyysj [Thu, 18 Jun 2009 09:12:44 +0000 (09:12 +0000)]
1. Fixed deadlock issue.
2. Update code to support adaptable feature set according chip type.
3. Add support new B0 chip of 9480.
4. Add change log file and README

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@912 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoscstadmin docs improved
vlnb [Wed, 17 Jun 2009 17:28:05 +0000 (17:28 +0000)]
scstadmin docs improved

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@910 d57e44dd-8a1f-0410-8b47-8ef2f437770f

13 years agoA bunch of minor changes:
vlnb [Wed, 17 Jun 2009 17:22:17 +0000 (17:22 +0000)]
A bunch of minor changes:

 - Logging improved
 - #warning about io_context patched for pre-2.6.27 kernels improved
 - Docs updated

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@909 d57e44dd-8a1f-0410-8b47-8ef2f437770f