Commit Graph

78 Commits

Author SHA1 Message Date
Vladislav Bolkhovitin
192c245e16 Merge of the trunk's revisions 2429, 2430 and 2470:
Update for 2.6.36



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2471 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-26 12:46:13 +00:00
Bart Van Assche
635996c45b Added Kconfig entry for scst_user. Excluded scst_user from the kernel build
when HIGHMEM4G or HIGHMEM64G is enabled.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2080 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-10 06:45:22 +00:00
Bart Van Assche
89b35b8b9d Even more upstream include path conversions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2077 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-09 15:38:31 +00:00
Bart Van Assche
5b33692678 More upstream include path conversions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2076 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-09 15:27:54 +00:00
Bart Van Assche
9cdef50326 Made sure that the 2.6.35 kernel patches apply cleanly.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1931 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-04 09:55:10 +00:00
Bart Van Assche
7b839ceaf7 Added to repository.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1916 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-03 15:33:45 +00:00
Bart Van Assche
cf6fb97164 Made sure that the source file scst_pres.c is compiled too.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1803 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-07-05 16:17:36 +00:00
Bart Van Assche
eb8dd24115 Added fcst to the nightly build.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1769 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-13 17:36:17 +00:00
Vladislav Bolkhovitin
b53e4cb4c1 Merge of the pr branch with additional fixes for problems found during extra testing
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1714 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-05-26 17:46:46 +00:00
Vladislav Bolkhovitin
2436e1bb8b Update for 2.6.34
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1712 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-05-24 12:17:36 +00:00
Bart Van Assche
0240109575 Added to repository.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1707 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-05-22 08:17:44 +00:00
Vladislav Bolkhovitin
af79b95d49 Resurrect readahead-2.6.32.patch under name readahead-2.6.32.below11.patch and update README that it was included in 2.6.32.11.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1658 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-04-27 16:52:15 +00:00
Bart Van Assche
a158f6fbe5 Removed because accepted in mainline kernel.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1637 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-04-21 11:02:13 +00:00
Bart Van Assche
ea4588ea60 Updated readahead-2.6.32.patch because of a recent kernel 2.6.32 stable patch.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1636 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-04-21 10:33:37 +00:00
Vladislav Bolkhovitin
ff6d116e49 Minor mainline kernel related fixes and cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1609 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-04-13 17:25:45 +00:00
Vladislav Bolkhovitin
08e7c3fba6 Great threads handling and performance improvements:
- io_context not needed anymore

 - Now threads pool can be per session

 - Each device now can have own type of threads pool with own threads count

+ docs updates and some cleanups and minor fixes.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1563 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-25 19:43:41 +00:00
Bart Van Assche
5dc06c26de scripts/run-regression-tests works now for the 2.6.33 kernel too.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1525 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-01 17:32:38 +00:00
Vladislav Bolkhovitin
9c02ed26c7 Update for 2.6.33
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1524 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-01 15:56:31 +00:00
Vladislav Bolkhovitin
8a4b3a1732 Those files were deleted moving to new pass-through implementation, but should have been resurrected when that implementation was limited to 2.6.30+ kernels only. Fixing.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1499 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-12 13:07:23 +00:00
Vladislav Bolkhovitin
23accb2e12 When converting the SCST source code into a series of upstream patches, SCST
is built via the kbuild infastructure. In kernel version 2.6.24 (commit
f77bf01425b11947eeb3b5b54685212c302741b8) the kbuild variable ccflags-y has
been introduced and the use of EXTRA_CFLAGS in kbuild makefiles has been
deprecated. The patch below converts SCST's in-tree makefiles such that these
use ccflags-y instead of EXTRA_CFLAGS when generating kernel patches for
kernel 2.6.24 or later.

Additionally, this patch removes the "default n" from the file
scst/kernel/in-tree/Kconfig.scst since this statement is superfluous.

The patch below has been tested by verifying the output of the following
command:
for ((v=23;v<=32;v++)); do rm -rf re* && scripts/run-regression-tests 2.6.$v; done

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1447 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-01-11 19:16:38 +00:00
Bart Van Assche
ca47017056 Added to repository.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1403 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-12-16 19:49:19 +00:00
Bart Van Assche
eaad0ab4fb Fixed kernel version numbers.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1402 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-12-16 19:49:00 +00:00
Vladislav Bolkhovitin
2b5833d90e Update for 2.6.32 + fix context of vdisk_t10_dev_id_rwlock
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1399 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-12-16 19:21:41 +00:00
Bart Van Assche
cd4162ddb9 Applies again properly to 2.6.26 kernel.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1175 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-04 07:22:43 +00:00
Bart Van Assche
5afbc1222d Fixed the following checkpatch warning by removing a blank line:
WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1164 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-03 06:59:51 +00:00
Bart Van Assche
ffaac4ff69 Added to repository.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1152 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-26 11:45:59 +00:00
Vladislav Bolkhovitin
b22067d540 Update for 2.6.31
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1145 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-25 18:31:33 +00:00
Vladislav Bolkhovitin
9a57947a5e Patch from Mark Buechler <mark.buechler@gmail.com> adding io_context patch for 2.6.26 kernel
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1113 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-18 10:33:12 +00:00
Vladislav Bolkhovitin
f748e87fb3 The patch below fixes several recently introduced sparse warnings and
errors. The patch below has been tested by verifying the output of the following commands:
  scripts/run-regression-tests 2.6.29
  scripts/run-regression-tests 2.6.30.4

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

Committed with some minor changes/additions.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1044 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-08-13 17:34:32 +00:00
Bart Van Assche
b9b9ab44f5 Whitespace-only change -- fixed the following checkpatch error:
ERROR: space required after that ',' (ctx:VxV).


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1043 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-08-13 12:06:04 +00:00
Vladislav Bolkhovitin
d3d1fa2d29 New implementation of the pass-through commands execution. Changes:
- scsi_execute_async() renamed to scst_scsi_exec_async() and from now will stay in scst_lib.c
 - In scst_scsi_exec_async() support for long CDBs and bidirectional commands added
 - Patches scst_exec_req_fifo were removed for kernels between 2.6.26 and 2.6.29, because they are not needed anymore. Pass-through will work on those kernels without them
 - Monor bug fixes and cleanups
 - Docs updated



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1040 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-08-12 17:13:26 +00:00
Vladislav Bolkhovitin
e609d55773 When compiling a 2.6.30 or 2.6.30.1 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: http://svn.code.sf.net/p/scst/svn/trunk@963 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-20 09:47:36 +00:00
Vladislav Bolkhovitin
d29bd7bc2f 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: http://svn.code.sf.net/p/scst/svn/trunk@953 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-14 15:39:57 +00:00
Vladislav Bolkhovitin
e0fed3bef6 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: http://svn.code.sf.net/p/scst/svn/trunk@944 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-09 17:48:28 +00:00
Bart Van Assche
3a369e462d Whitespace-only change: fixed an error reported by checkpatch.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@942 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-09 07:00:57 +00:00
Bart Van Assche
901e476100 Whitespace-only changes: fixed two errors reported by checkpatch.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@941 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-09 06:29:58 +00:00
Vladislav Bolkhovitin
37ba91d275 Update for 2.6.30
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@938 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-08 17:27:30 +00:00
Vladislav Bolkhovitin
700eb30c9c Backported versions of the context readahead patch http://lkml.org/lkml/2009/4/12/9, which improve performance of Linux read-ahead algorithm.
Thanks to Wu Fengguang for backporting!



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@927 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-30 10:45:48 +00:00
Vladislav Bolkhovitin
52c786d105 Patch from Klaus Hochlehnert <Mailings@kh-dev.de>:
Here's the readahead patch for Ubuntu 8.04 - 2.6.24 kernel



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@925 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-29 18:11:58 +00:00
Vladislav Bolkhovitin
d1470f9526 Some time ago it became clear that some SCST users are using kernel 2.6.23. So
it makes sense to run the nightly build also for kernel 2.6.23. But doing so
is only possible with the attached two files present in the SCST tree.
Except for the kernel version these patches are identical to the corresponding
patches for the 2.6.24 kernel.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@907 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-16 19:36:11 +00:00
Bart Van Assche
1593c39a80 Removed trailing whitespace from the newly added lines in the readahead* patches.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@904 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-16 06:28:06 +00:00
Vladislav Bolkhovitin
0bb8a456dd readahead patches added. See http://sourceforge.net/mailarchive/forum.php?thread_name=a0272b440906030714g67eabc5k8f847fb1e538cc62%40mail.gma
il.com&forum_name=scst-devel for more details.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@896 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-08 17:01:04 +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
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
Vladislav Bolkhovitin
dd1400dddc The patch below adds the following two RHEL 5 / CentOS 5 patches to the SCST
source tree:
- Support for zero-copy TCP transfer completion.
- An implementation of scsi_execute_async_fifo().
Except for the hunk headers, these patches are identical to similarly named
patches already present in the SCST source tree.

Additionally, implementations of seq_list_start() and seq_list_next() are
provided for those kernel versions that do not define these functions.

The patch below has been tested by verifying that iSCSI data transfer still
works OK on CentOS 5.2 (x86_64).

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@657 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-02-02 11:36:53 +00:00
Vladislav Bolkhovitin
ae5ec143aa The patch below is a minor correction for the 2.6.27 in-tree kernel patches
I submitted about three months ago: the patch headers now refer to the 2.6.27
kernel as they should instead of the 2.6.26 kernel. At least one user has been
confused by this. The patch below does not change any behavior of SCST.
The patch has been tested by verifying that the output of the following
command remained the same as before the modifications:
scripts/run-regression-tests -k 2.6.27

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@656 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-02-02 11:29:14 +00:00
Vladislav Bolkhovitin
479a9d0a9f - Update for 2.6.28
- Small doc update in flow control area



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@632 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-01-12 18:55:08 +00:00
Vladislav Bolkhovitin
3ee7fc1e44 .26 changed to .27 to stop confusing too observant people :)
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@617 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-12-11 14:30:40 +00:00
Vladislav Bolkhovitin
2ceda4a4c2 alloc_io_context renamed to export_alloc_io_context
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@588 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-11-28 17:19:29 +00:00
Vladislav Bolkhovitin
1cabaea296 - Performance increase
- Cleanups



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@587 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-11-28 17:15:17 +00:00