Commit Graph

128 Commits

Author SHA1 Message Date
Vladislav Bolkhovitin
408ae374ba Merged revisions 6596-6674,6679 via svnmerge from
svn+ssh://vlnb@svn.code.sf.net/p/scst/svn/trunk



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.1.x@6681 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-12 03:57:17 +00:00
Bart Van Assche
16a955ab7b scst: Move vfs_fsync() backports to a new header file
This patch does not change any functionality but makes the SCST
source code easier to read. The intention is later on to move all
backported functions and macros from <scst.h> into <backport.h>.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6547 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-10-19 17:23:16 +00:00
Bart Van Assche
0d9d6a6f57 isert-scst: Fix in-tree build
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6312 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-06-12 16:15:45 +00:00
Bart Van Assche
6aaeca1cd9 Merge iser branch r6234 into trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6235 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-06-10 15:35:26 +00:00
Bart Van Assche
628f3939bc scst: Rework SCSI pass-through support for kernel versions >= 2.6.30
Changes in this patch:
- Rework the SCSI pass-through code such that for kernel versions
  >= 2.6.30 the scst_exec_req_fifo patch is no longer needed.
- Modify the pass-through code such that blk_rq_append_bio() is only
  called for kernel version 2.6.30. For later kernel versions
  blk_make_request() is called instead.
- Rework scst_scsi_exec_async().
- Add debug tracing of SCSI pass-through result status.
- Add a lockdep_assert_held() call in scsi_end_async().



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5979 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-01-20 15:04:23 +00:00
Bart Van Assche
b83f4faa55 scripts/generate-kernel-patch: Include scst_pg.sgml instead of sgv_cache.sgml
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5936 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-12-12 09:29:42 +00:00
Bart Van Assche
5ce36973f7 scripts/generate-kernel-patch: Swap two filters
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5910 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-12-04 11:50:58 +00:00
Bart Van Assche
d4c49fcd64 scripts/generate-kernel-patch: Only generate scst_itf_ver.h if needed
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5827 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-10-03 12:23:34 +00:00
Bart Van Assche
ba876f77d4 scripts/generate-kernel-patch: Remove trailing whitespace
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5674 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-07-11 07:54:19 +00:00
Bart Van Assche
586ab2f547 scripts/generate-kernel-patch: Also generate scst-itf-ver.h
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5673 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-07-11 06:48:49 +00:00
Bart Van Assche
cbc9df8306 iscsi-scst/kernel/patches/put_page_callback-3.2.57.patch: Add
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5450 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-20 06:24:23 +00:00
Bart Van Assche
8dc624dae3 scripts/generate-kernel-patch: Fix for kernel versions 3.7, 3.10, 3.12 and 3.13
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5399 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-03-27 08:39:53 +00:00
Bart Van Assche
77f366ba08 nightly build: Add support for kernels >= 3.10.30 and >= 3.12.11
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5311 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-02-25 10:58:08 +00:00
Bart Van Assche
086744df29 nightly build: Add support for the put_page_callback-3.13.3 patch
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5301 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-02-21 07:44:55 +00:00
Bart Van Assche
1a367a14c8 regression tests: Run the 2.6.26..2.6.32 tests on the sysfs code instead of procfs
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5270 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-02-07 07:45:15 +00:00
Bart Van Assche
8a1dad384f scripts/generate-kernel-patch: Follow-up for r4932
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4935 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-03 19:19:08 +00:00
Bart Van Assche
ce636f3fc7 scripts/generate-kernel-patch: Pass full kernel version to scripts/specialize-patch
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4932 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-03 18:03:55 +00:00
Bart Van Assche
22c950246a scripts/generate-kernel-patch: Use the proper version of the put_page_callback patch for kernel 3.7.10
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4807 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-03-20 07:01:59 +00:00
Bart Van Assche
06a0643d73 nightly build: Skip fcst for kernel versions 2.6.37 and 2.6.38
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4187 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-04 12:53:44 +00:00
Bart Van Assche
f54a1e1c01 nightly build: Remove a kernel patch again
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4185 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-03 17:38:47 +00:00
Bart Van Assche
6a6fe9af43 nightly build: Build fcst against recent kernels too / fix a sparse warning
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4184 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-03 17:00:08 +00:00
Bart Van Assche
c3fb0dd2b9 nightly build: Include scst_proc.c only if necessary
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4090 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-23 15:15:52 +00:00
Bart Van Assche
9de7980a91 nightly build: Revert r4088 - scst_proc.c is needed in order to build with against an older kernel version
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4089 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-23 09:42:40 +00:00
Bart Van Assche
90f845c9d6 nightly build: Ignore procfs code
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4088 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-22 12:56:17 +00:00
Bart Van Assche
597b7244ff Rename scripts/kernel-version into scripts/kernel-functions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4051 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-07 09:13:48 +00:00
Bart Van Assche
c8fcd3d082 nightly build: include fcst for kernel version 2.6.37 and later
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4028 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-21 09:58:09 +00:00
Bart Van Assche
dbc55781d7 Add remaining Linux kernel 3.0 patches and port nightly build scripts to 3.0 too.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3783 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-27 14:05:47 +00:00
Vladislav Bolkhovitin
e1447ae241 Add implicit ALUA support. On a setup with more than one target port
(sometimes called storage head) this patch makes it possible to tell the
initiator which port to use. Since that information can be specified per LUN,
with this patch it is not only possible to tell the initiator which path to
choose but also to balance the load over target ports. Target port attributes
can not only be defined for target ports that exist on the system on which
SCST is running but also for target ports present on other nodes of the same
HA setup. As far as I know this feature is unique among open source storage
target implementations.

Note: with this patch SCSI target port attributes can be defined for each LUN
defined on each SCST target individually. Such an SCST target is either a
physical entity (e.g. a HCA for the ib_srpt driver) or a logical entity (e.g.
an iSCSI target for the iscsi_scst driver). In the last case it is up to the
user to make sure that there is a one-to-one relationship between SCST target
and SCSI target port.

This patch is based on the specifications in the ANSI T10 spc4r30 document.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3446 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-11 02:22:48 +00:00
Bart Van Assche
361cc3f91c Renamed sgv_cache.txt into sgv_cache.sgml.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3318 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-03-28 16:26:03 +00:00
Bart Van Assche
5fe037e5b9 Updated my e-mail address in copyright statements and README files.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3175 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-21 18:48:14 +00:00
Bart Van Assche
099e3d746d Corrected patch numbers.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3147 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-20 14:22:48 +00:00
Bart Van Assche
c75f68247a Reverted r2748 because it might offend some people.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2917 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-04 09:22:00 +00:00
Vladislav Bolkhovitin
2e9f15f2d7 Some ibmvstgt patch description improvements
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2748 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-18 20:33:14 +00:00
Bart Van Assche
184fd83fc3 ibmvstgt: Updated patch description once more.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2746 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-17 19:53:09 +00:00
Bart Van Assche
e0ca9738d9 Yet another patch description update.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2687 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-13 14:40:50 +00:00
Bart Van Assche
ec1c78413a More patch description updates.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2685 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-13 13:54:20 +00:00
Bart Van Assche
4a6d63f71a Updated patch descriptions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2684 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-13 12:53:29 +00:00
Bart Van Assche
64b2df03e4 ibmvstgt patch description: Separated porting changes from other changes.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2667 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-11 13:23:30 +00:00
Bart Van Assche
b3364e18ba ibmvstgt: Patch description update.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2666 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-11 13:17:50 +00:00
Bart Van Assche
57d7323e00 ibmvstgt: Updated documentation.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2664 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-11 12:40:57 +00:00
Bart Van Assche
1f2cedce37 Merged scripts directory from ibmvstgt-port branch (svn merge -r2369:2654 https://scst.svn.sourceforge.net/svnroot/scst/branches/ibmvstgt-port/scripts).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2661 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-11 09:26:44 +00:00
Bart Van Assche
1a4dc2afa0 Works again.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2522 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-31 10:57:33 +00:00
Bart Van Assche
91aec29858 svn merge -r2369:2520 https://scst.svn.sourceforge.net/svnroot/scst/branches/ibmvstgt-port/scripts
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2521 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-31 10:54:36 +00:00
Bart Van Assche
8337c3b35a Fixed a bug that was introduced in r2366.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2370 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-08 16:37:16 +00:00
Bart Van Assche
e5d1af7b12 Rearranged SCST patch order.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2366 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-08 10:40:24 +00:00
Bart Van Assche
8fdcfcef96 Don't generate empty patches.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2365 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-08 10:35:32 +00:00
Bart Van Assche
b67e6a893f Rearranged names and contents of the broken-out SCST patchset.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2363 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-07 10:58:45 +00:00
Bart Van Assche
160be2c30a Reverted r2327 because it is no longer necessary.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2357 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-06 17:52:28 +00:00
Bart Van Assche
b5c8cdb121 Bug fix: made sure that nested invocations of process_patch() do not overwrite each others output.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2356 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-06 17:50:50 +00:00
Bart Van Assche
3bae1fcd3c scst_passthrough.diff is again non-empty.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2327 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-01 17:19:37 +00:00