Commit Graph

742 Commits

Author SHA1 Message Date
Vladislav Bolkhovitin
7a31e82bd1 Merge of trunk r894:
Merge of IET r213



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@895 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-03 19:22:05 +00:00
Vladislav Bolkhovitin
a89f91d935 Merge of r891-892:
- 64-bit cleanups
 - Other monor fixes and cleanups
 - Docs updates



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@893 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-03 19:15:35 +00:00
Stanislaw Gruszka
df32443b8c Backport r794 into 1.0.1.x branch.
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@887 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-23 12:05:14 +00:00
Stanislaw Gruszka
1a8a04da88 Add r782 into 1.0.1.x branch.
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@886 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-23 11:47:24 +00:00
Stanislaw Gruszka
406fef799e Backport r780 to 1.0.1.x branch.
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@885 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-23 11:45:35 +00:00
Vladislav Bolkhovitin
17bd236720 Merge of a safer version of r870:
Fixes possible miss of UCMD_STATE_ON_FREEING event found by Erez Zilber <erezzi.list@gmail.com> + some cleanups



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@871 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-20 17:24:13 +00:00
Vladislav Bolkhovitin
7d98723641 Merge of r864:
Fixes issues cased by recent change of cdb_len to unsigned. Reported by Krzysztof Błaszkowski <kb@sysmikro.com.pl>.

Also it adds INIT ELEMENT STATUS WRANGE to the list of known commands.



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@865 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-19 18:24:18 +00:00
Vladislav Bolkhovitin
2ede51aa5f Merge of r842:
- Error logging improved
 - Docs updates



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@847 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-11 17:40:53 +00:00
Vladislav Bolkhovitin
28b03fb655 Merge of r839:
Fix possible crash with too fast target mode enabling/disabling or module unload



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@845 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-11 17:37:27 +00:00
Dotan Barak
3d28434e81 Worth pulling back into branch- 64 bit Type 3 request usage was massively broken.
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@832 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-10 17:20:50 +00:00
Vladislav Bolkhovitin
455f0a2d18 Merge of 812 and 806:
- Change in scstadmin/ChangeLog 'since' to 'for' in ChangeLog so the version isn't misleading
 - Fixes incorrect initiators.allow matching. Reported and tested by Dimitri Puzin <max@psycast.de>.
 - Fixes handling of tab character during parsing of initiators.allow and initiators.deny files
 - IET part of the version updated
 - TAGS updated
 - Comments in scst_targ.c about long ago gone scst_unregister_session_ex() fixed

+

Version updated to 1.0.1.1




git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@813 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-29 11:48:17 +00:00
Vladislav Bolkhovitin
b8a01f60a8 Switch to the release mode
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@805 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-27 19:24:32 +00:00
Vladislav Bolkhovitin
ab5a518c38 Merge of r803:
- Copyrights updated.
 - Other minor updates



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@804 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-27 19:19:19 +00:00
Vladislav Bolkhovitin
ec9eaa9ece Merge of r798:
Compatibility patch for pre-2.6.26 kernels added



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@802 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-27 18:47:07 +00:00
Vladislav Bolkhovitin
735814fb79 Merge of r796:
- Fixes BUG: scheduling while atomic
 - Removes nested allocation, because MAX_LOCKDEP_SUBCLASSES isn't sufficiently high in many cases
 - Size for mempools for UAs and sense buffers increased



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@797 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-24 13:23:00 +00:00
Vladislav Bolkhovitin
4b819775b8 Merge of r792:
We can't mark sess as shutting down in close_conn(), because at that time it might have pending commands. Otherwise, in case of reinstatemen
t it might lead to data corruption, because commands in being reinstated session can be executed after commands in the new session.

Found out by Hari Subramanian <hari@vmware.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@793 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-21 18:29:56 +00:00
Vladislav Bolkhovitin
4293d9c641 Merge of r790:
Patches from Bart Van Assche <bart.vanassche@gmail.com>:

 - Fix for trailing whitespaces
 - Fix for an error in the iSCSI-SCST howto document.
 - Make SCST compile on RHEL 5.3

+ small qla2x00t README update



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@791 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-20 20:36:48 +00:00
Mark Buechler
d5f266c172 Make recent changes available to 1.0.1.x branch.
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@787 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-17 18:33:09 +00:00
Vladislav Bolkhovitin
a61ac60fb9 Merge of trunk r774
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@775 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-14 17:38:07 +00:00
Vladislav Bolkhovitin
fa191c256b Merge of r764
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@765 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-09 10:26:48 +00:00
Vladislav Bolkhovitin
2a3c56b408 Merged r752
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@753 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-06 11:22:45 +00:00
Vladislav Bolkhovitin
cb1a583e9f Merge of r739 and r743
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@746 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-03 18:02:18 +00:00
Vladislav Bolkhovitin
34949e6f2d Cleanups and minor, but needed for 1.0.1, fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@745 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-03 17:49:49 +00:00
Dotan Barak
93ed53961f Make it compile on CentOS, or so Vlad asserts.
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@741 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-03 00:45:30 +00:00
Vladislav Bolkhovitin
dc562ff8b5 Merge of trunk r733-737
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@738 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-02 18:42:34 +00:00
Vladislav Bolkhovitin
36d5d1a19b Docs updated. Changes in iscsi-scst/doc/iscsi-scst-howto.txt made by Bart Van Assche
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@731 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-01 11:53:45 +00:00
Vladislav Bolkhovitin
52c9e6e356 Fixed typo in Q2T_VERSION_CODE
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@730 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-01 11:10:05 +00:00
Vladislav Bolkhovitin
ac513cccb6 1.0.1 development freeze. Branch 1.0.1.x created.
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@726 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-03-27 20:03:37 +00:00
Vladislav Bolkhovitin
eb14f7ca12 ChangeLog and ToDo files updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@725 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-03-27 19:50:23 +00:00
Vladislav Bolkhovitin
ddf8e1d499 - Minor fixes in error recovery paths
- Minor cleanups



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@724 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-03-27 12:14:41 +00:00
Vladislav Bolkhovitin
766979063e The patch below adds a comment about why it is safe to use in_atomic() in
scst_cmd_atomic() -- the 2.6.29 checkpatch script issues a warning about it.
At the same time, the scst_cmd_atomic() comment has been converted to
kernel-doc style. See also Documentation/kernel-doc-nano-HOWTO.txt for more
information.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@723 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-03-26 19:01:28 +00:00
Vladislav Bolkhovitin
4c8237b73b Sync with the latest IET (r207-211):
- Fix CHAP account handling bugs
 - Fix bugs in multi PDU handling code



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@722 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-03-26 18:38:05 +00:00
Vladislav Bolkhovitin
f8ba391aea - Fixed crash introduced by r710 reported by andy yan <andyysj@gmail.com>
- Improve logging on write access on read-only devices
 - Make the same initiator coming through different sessions use shared IO context
 - Cleanups



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@721 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-03-26 18:25:00 +00:00
Vladislav Bolkhovitin
00b094c7fa Patch from Ruben Laban <r.laban@ism.nl>:
While writing DKMS support for the SCST and iSCST-SCST kernel modules, I ran 
into a (common) problem with regard to out-of-tree build detection. A common 
method to detect out-of-tree building is by using the KERNELRELEASE variable. 
The usage of this variable poses a problem when using DKMS. DKMS itself uses 
the KERNELRELEASE variable to specify the kernel for which the driver to 
build. A suggested alternative would to use the PATCHLEVEL variable as part 
of the detection mechanism instead. I attached a patch reflecting this 
suggested change.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@720 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-03-25 19:42:03 +00:00
Vladislav Bolkhovitin
643c7ab2d1 Patch from Ruben Laban <r.laban@ism.nl>:
I replaced all occurences of DISTDIR with DESTDIR and also introduced SBINDIR (and friends) to some other Makefiles. 



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@719 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-03-25 19:33:10 +00:00
Vladislav Bolkhovitin
8ff3e56ef6 Fixes deadlock on iSCSI session freeing. Reported by andy yan <andyysj@gmail.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@718 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-03-25 13:03:29 +00:00
Vladislav Bolkhovitin
bc96b052d5 The patch below adds support for the 2.6.29 kernel and also fixes the
checkpatch issues reported by the checkpatch script included with the 2.6.29
kernel and that were not yet reported by the 2.6.28 checkpatch script
(trailing statements should be on the next line / struct should normally be
const).
The patch below has been tested as follows:
- Reran scripts/run-regression-tests -k 2.6.24.7 -k 2.6.25.20 -k 2.6.26.8 -k 2.6.27.21 -k 2.6.28.9 -k 2.6.29 and verified the output.
- Rebuilt, installed and loaded scst, iscsi-scst and srpt as follows:
make -s clean && make -s -C scst install && make -s -C iscsi-scst install && make -s -C srpt install && cd scstadmin && make -s && make -s install && modprobe scst_vdisk && modprobe iscsi-scst && dmesg

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

with minor cleanups and corrections in put_page_callback-2.6.29.patch



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@717 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-03-25 12:55:27 +00:00
Bart Van Assche
9e5f29c3f6 - Added command-line option -d, which allows to specify a directory for
temporary regression test files.
- Added workaround for the problem that the branch profiling code in the
  2.6.29 kernel triggers a huge number of sparse warnings.
- Made sure that all tests print some output, even if successful.
- Improved summarizing of sparse warnings.
- Command-line option -j now works.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@716 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-03-24 19:08:29 +00:00
Vladislav Bolkhovitin
2f9f473cde - Fixes broken build if io_context patch not applied
- #warning's cleanup



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@715 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-03-24 10:43:55 +00:00
Bart Van Assche
1f2cbd53bb - Added command-line option -j (number of jobs that make should run
simultaneously).
- scripts/generate-kernel-patch is now only run once instead of three
  times per kernel version.
- Context imbalance warnings are no longer filtered from the output of
  sparse.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@714 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-03-23 19:58:18 +00:00
Bart Van Assche
addb8c5698 Finished renaming of export_alloc_io_context patch into io_context performed in revision r710.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@713 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-03-23 19:44:42 +00:00
Vladislav Bolkhovitin
9c552a9b60 The patch below fixes the following recently introduced checkpatch complaints:
* use tabs not spaces

and the following recently introduced sparse warnings:

* drivers/scst/scst_lib.c:437:6: warning: symbol 'scst_queue_report_luns_changed_UA' was not declared. Should it be static?
* drivers/scst/scst_lib.c:3909:21: warning: symbol 'tm_dbg_tgt_dev' was not declared. Should it be static?
* drivers/scst/iscsi-scst/session.c:170:9: warning: cast to non-scalar
* drivers/scst/iscsi-scst/session.c:180:24: warning: cast to non-scalar
The patch below has been verified by reviewing it carefully and by verifying the output of the following command: scripts/run-regression-tests -k 2.6.28.8

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@712 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-03-23 19:32:32 +00:00
Vladislav Bolkhovitin
177824fe91 Unsupported patch from Krzysztof Błaszkowski <kb@sysmikro.com.pl>:
I prepared it for kernel 2.6.27.7-9 which is used by openSuSE11.1-0 but it can 
also be applied to 2.6.27.19-3.2.1 (with some offset/fuzz) which is going to 
be deployed in SLE11.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@711 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-03-23 19:25:38 +00:00
Vladislav Bolkhovitin
acbfc9a0d2 - Make dynamic io_context assignment complete. Old export_alloc_io_context patch should be reverted and new io_context patch applied instead.
- Make BLOCKIO io_contex be per-(device,session)
 - Cleanups



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@710 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-03-23 19:19:56 +00:00
Bart Van Assche
a7efed3caf Changes:
- Added command-line option -f, which enables a full check. Changed
  behavior when -f has not been specified to running checkpatch, sparse
  and headers_check only. This makes the script complete a lot faster.
- A summary of the errors and warnings reported by checkpatch, sparse
  and make headers_check is now printed.
- Made the functions kernel_version and patchlevel more robust.
- The function duplicate_source_tree now only copies the files
  administered by Subversion. Other files, e.g. .o files, are skipped.
- Moved the make flag -j3 from individual make commands to a single
  assignment to the variable MAKEFLAGS, such that the make flags are
  easier to modify.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@709 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-03-21 10:21:26 +00:00
Vladislav Bolkhovitin
94ae1d6db9 Fixes possible oopses on scst_cmd dereference.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@708 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-03-20 18:40:55 +00:00
Vladislav Bolkhovitin
27c5d8dcdf The patch below fixes the following recently introduced checkpatch complaints:
* use tabs not spaces
* Macros with complex values should be enclosed in parenthesis.
* printk() should include KERN_ facility level.
The patch below has been verified by reviewing it carefully and by verifying the output of the following command: scripts/run-regression-tests -k 2.6.28.8

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@707 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-03-20 12:36:01 +00:00
Vladislav Bolkhovitin
a20e32ad33 Fixing NULL pointer dereferences accessing dev->d_sense
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@706 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-03-20 12:29:20 +00:00
Vladislav Bolkhovitin
071e0a720c Support for descriptor sense format added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@705 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-03-20 12:07:48 +00:00
Vladislav Bolkhovitin
988f8d98fc Patch from Ruben Laban <r.laban@ism.nl> to make the Makefiles more packager friendly with some modifications.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@704 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-03-19 14:20:07 +00:00