Commit Graph

751 Commits

Author SHA1 Message Date
Vladislav Bolkhovitin
5625a82c8a Merge of r972 and r977:
- Fixes a race, which can lead to a hang, if a user space handler with >1 devices gets killed under load

 - Fix double free



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@978 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-27 16:46:00 +00:00
Vladislav Bolkhovitin
de285c9c59 Merge of r967-969:
Patch from Smadar Gonen <smadar.gn@gmail.com>

Implements some useful scst_user statistic in /proc

Minor fixes and cleanups

Bart Van Assche <bart.vanassche@gmail.com>:

Whitespace-only changes: fixed two recently introduced checkpatch errors (code should be indented by tabs / trailing whitespace).




git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@973 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-24 18:13:33 +00:00
Vladislav Bolkhovitin
7498cf3669 Merge of r964:
Fixes incorrect errors reporting on devices unregistration.



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@965 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-20 10:47:40 +00:00
Vladislav Bolkhovitin
e92f8e4044 Merge of r947:
Removed trailing whitespace.

and r952:

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: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@960 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-17 10:55:44 +00:00
Vladislav Bolkhovitin
fe3f27494e Merge of r955 and 958:
- Fixes possible crash if sgv pools destroyed too early.
 - Fixes race on a scst_user device cleanup



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@959 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-17 10:50:39 +00:00
Vladislav Bolkhovitin
60c6d77ae3 Merge of r946:
Removes unneeded mutex_lock(&scst_mutex), which can't be done on atomic or SIRQ context



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@956 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-14 16:59:42 +00:00
Vladislav Bolkhovitin
fc087e2be8 Merge of r945:
Fixes wrong usage of parent request's fields in the response.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@954 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-14 16:53:13 +00:00
Vladislav Bolkhovitin
cd91fa27d2 Merge of r914:
Fix possible crash in scst_copy_sg()



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@915 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-19 16:36:34 +00:00
Vladislav Bolkhovitin
84454eed90 Merge of trunk r909-910:
909:

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

910:

 - scstadmin docs improved



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@911 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-17 17:37:58 +00:00
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