mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-20 20:21:30 +00:00
svn+ssh://yanb123@svn.code.sf.net/p/scst/svn/trunk
........
r5510 | vlnb | 2014-05-09 06:51:10 +0300 (Fri, 09 May 2014) | 8 lines
scst: Make pr path configurable
Make the path of the file in which persistent reservation information
is stored configurable via sysfs.
Signed-off-by: Bart Van Assche <bvanassche@acm.org> with some improvements and fixes
........
r5511 | vlnb | 2014-05-09 06:57:20 +0300 (Fri, 09 May 2014) | 9 lines
scst_vdisk: Introduce three helper functions
Introduce the vdisk_bio_alloc(), vdisk_bio_set_failfast() and
vdisk_bio_set_hoq() helper functions. This patch does not change any
functionality.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
........
r5512 | vlnb | 2014-05-09 07:14:39 +0300 (Fri, 09 May 2014) | 3 lines
Cleanup
........
r5513 | vlnb | 2014-05-10 02:20:49 +0300 (Sat, 10 May 2014) | 7 lines
Fix sense code for invalid service actions
According to T10, multibyte opcode commands with not supported service
actions must be refused with INVALID FIELD IN CDB instead of INVALID
OPCODE
........
r5514 | vlnb | 2014-05-10 02:25:13 +0300 (Sat, 10 May 2014) | 3 lines
Cleanup
........
r5515 | vlnb | 2014-05-10 05:10:22 +0300 (Sat, 10 May 2014) | 3 lines
Improve tracing of Unit Attentions
........
r5516 | vlnb | 2014-05-10 06:55:11 +0300 (Sat, 10 May 2014) | 3 lines
Follow up for r5513
........
r5517 | bvassche | 2014-05-10 09:20:01 +0300 (Sat, 10 May 2014) | 6 lines
scst_pres: Fix a recently introduced checkpatch warning
Avoid that checkpatch reports the following:
WARNING: do {} while (0) macros should not be semicolon terminated
........
r5518 | bvassche | 2014-05-12 18:56:45 +0300 (Mon, 12 May 2014) | 1 line
ib_srpt: Source code comment spelling fix
........
r5520 | vlnb | 2014-05-15 04:39:12 +0300 (Thu, 15 May 2014) | 11 lines
iscsi-scst: One major number per thread pool
Assign one major number per thread pool instead of as many major
numbers as there are threads in a thread pool. Do not increment
'major' if thread pool allocation fails. Micro-optimize
iscsi_threads_pool_get() by eliminating the assignment to 'fn'
and the write via snprintf() into name[].
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
........
r5521 | vlnb | 2014-05-16 05:05:38 +0300 (Fri, 16 May 2014) | 3 lines
Cleanups
........
r5522 | vlnb | 2014-05-16 05:37:29 +0300 (Fri, 16 May 2014) | 5 lines
Cleanup
Those functions might be called on some corner cases without pr_mutex held
........
r5523 | vlnb | 2014-05-17 03:18:42 +0300 (Sat, 17 May 2014) | 8 lines
scst_lib: Clarify scst_init_cmd() documentation
The possible return values of scst_init_cmd() are -1, 0 and 1. Mention
this in the comment header above that function.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
........
r5524 | vlnb | 2014-05-17 04:04:08 +0300 (Sat, 17 May 2014) | 29 lines
scst_main: Fix race between scst_resume_activity() and scst_init_thread()
After SCST_FLAG_SUSPENDED has been cleared it is essential that
scst_do_job_init() reexamines scst_init_cmd_list to avoid that
commands get stuck in the command init list. This patch fixes the
following race condition that can occur if SCST_FLAG_SUSPENDED
has been set and if scst_init_cmd_list is not empty:
* scst_do_job_init() returns to scst_init_thread() and leaves the
commands that were on the init list on that list.
* scst_init_thread() invokes test_init_cmd_list().
* test_init_cmd_list() returns false because SCST_FLAG_SUSPENDED
has been set.
* scst_resume_activity() clears SCST_FLAG_SUSPENDED and invokes
wake_up_all(&scst_init_cmd_list_waitQ). However, since
scst_init_thread() has not yet added the init thread back to
scst_init_cmd_list_waitQ this wake_up_all() call doesn't do
anything.
* scst_init_thread() adds the init thread to scst_init_cmd_list_waitQ
and unlocks scst_init_lock.
Additionally, remove an unneeded smp_mb__after_clear_bit() call.
wake_up_all() guarantees that if it wakes up a thread that that
thread sees all store operations that were performed by the thread
that invoked wake_up_all() and that preceeded the wake_up_all()
invocation.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
........
r5525 | vlnb | 2014-05-17 04:16:33 +0300 (Sat, 17 May 2014) | 7 lines
scst_vdisk: Introduce vdisk_reexamine() and vdisk_close_fd()
This patch does not change any functionality
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
........
r5526 | bvassche | 2014-05-18 14:26:42 +0300 (Sun, 18 May 2014) | 1 line
scst_vdisk: Handle attach failures properly (follow-up for r5525)
........
r5527 | bvassche | 2014-05-18 19:27:01 +0300 (Sun, 18 May 2014) | 1 line
nightly build: Update kernel versions
........
r5532 | vlnb | 2014-05-21 02:39:57 +0300 (Wed, 21 May 2014) | 3 lines
Prevent potential deadlock between scst_del_threads() and commands taking scst_mutex
........
r5533 | vlnb | 2014-05-22 05:56:20 +0300 (Thu, 22 May 2014) | 3 lines
Improve handling of aborted internal commands
........
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@5554 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This directory (nightly/) contains a simple, automatic build-and-test
system for SCST, intended to be run by cron.
Note (importantly) it doesn't test the sources in the tree of which
this directory is a part (viz, nightly/..). Instead it checks out
a complete new tree, builds and tests that independently of the
existing tree.
To use, choose a tag, probably a machine name, and run
bin/nightly <tag>
and supply the following two config files:
- conf/<tag>.conf: this is sourced by the 'nightly' script, and can define
any or all of the following environment variables:
ABT_DETAILS: describes the machine in more detail, eg. the OS. The default
is empty.
ABT_EVAL: if provided, it must be the name of a shell script that executes
the shell command $1 with arguments $2 .. ${$#}. Allows to compile and
run the SCST regression tests on another system than the system the
'nightly' script runs on. It is assumed that the remote system shares the
local filesystem tree through e.g. NFS. It is the responsibility of the
shell script to set the remote working directory such that it matches the
local current directory ($PWD).
ABT_JOBS: allows parallel builds -- it's passed as the argument to "make
-j" when building SCST and the tests. The default is 1.
ABT_KERNELS: kernel version numbers to test SCST against.
ABT_TMPDIR: absolute path in which temporary files will be stored.
- conf/<tag>.sendmail: this should be a script that sends an email to the
desired recipient (eg. the scst-developers list). It takes three
command line arguments. The first is the email subject line, the second
is the name of the file containing the email's body (showing the tests
that failed, and the difference between now and 24 hours ago), the third
is the name of the file containing all the diffs (which can be made into
an attachment, for example).
CREDITS
The automatic build-and-test infrastructure for the SCST project reuses some
ideas and shell script code from a similar infrastructure in the Valgrind project.