Bart Van Assche
663d39f1ea
iscsi-scst/kernel/iscsi.c: fix a checkpatch complaint about whitespace.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3447 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-11 11:00:01 +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
Vladislav Bolkhovitin
0f11a6139f
Let's make build state changes errors more clear
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3445 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-11 01:56:38 +00:00
Vladislav Bolkhovitin
70eb596f60
Rework iSCSI aborts to make them more correct and remove recent workarounds (one more post-IET cleanup)
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3444 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-09 23:07:23 +00:00
Mark Buechler
1ee4416700
- Enable all hardware targets before adding virtual ones.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3443 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-09 20:03:07 +00:00
Bart Van Assche
6d823a16fa
Updated kernel versions.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3442 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-08 11:59:05 +00:00
Bart Van Assche
e47c6eb768
scst.h: Avoid that including scst.h before <linux/slab.h> triggers a warning about a preprocessor symbol redefinition.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3441 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-08 11:55:43 +00:00
Vladislav Bolkhovitin
33caaa6ee7
Cleanup
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3440 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-05 22:47:28 +00:00
Vladislav Bolkhovitin
a0a388396f
Fix incorrect errors reporting on deleting LUNs from groups in the proc interface
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3439 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-05 22:46:18 +00:00
Vladislav Bolkhovitin
f9cbfe51cd
RHEL5/6 workaround
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3438 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-03 21:27:30 +00:00
Vladislav Bolkhovitin
dbdc2386b6
MultiP must be 1 and HiSup 0. Dejavu, I've already fixed it.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3435 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-03 20:51:39 +00:00
Bart Van Assche
85c288f2f3
Added #include <linux/slab.h> for kmem_cache_free().
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3434 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-02 17:43:54 +00:00
Bart Van Assche
fb9ea53977
Expand CONFIG_SCST_PROC too.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3433 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-01 09:14:06 +00:00
Bart Van Assche
e6a6bf11e6
Removed the constant REPORT_DEVICE_IDENTIFIER from scst/include/scst_const.h because it is not used anywhere in the SCST source tree.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3432 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-01 07:43:18 +00:00
Bart Van Assche
0e25f070ea
Bug fix: do not try to apply patch readahead-2.6.32.below11.patch on kernel 2.6.32.11 or any later 2.6.32 kernel.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3431 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-30 17:42:23 +00:00
Bart Van Assche
ec5a178eac
Fix a compiler warning on pre-2.6.35 non-RHEL systems.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3430 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-30 06:41:03 +00:00
Vladislav Bolkhovitin
73a32544ae
Remove "unused variable" warning on old kernels
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3429 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-29 23:50:59 +00:00
Vladislav Bolkhovitin
9dcac0d305
Don't allow to create targets with the same names
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3428 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-29 21:53:19 +00:00
Vladislav Bolkhovitin
8443ae6bc7
Don't abort not yet received commands
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3425 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-29 19:54:13 +00:00
Vladislav Bolkhovitin
0c6cf4100d
iSNS server should know only about enabled targets
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3424 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-29 18:21:30 +00:00
Vladislav Bolkhovitin
7311aeced3
Follow up commit for r3422
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3423 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-27 23:29:46 +00:00
Vladislav Bolkhovitin
30a78b2881
Patch from Grigory Eykalis <Grigory.Eykalis@dothill.com> with some changes implementing pass-through functionality
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3422 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-27 20:46:17 +00:00
Vladislav Bolkhovitin
c5b9c85591
- More timers improvements
...
- Cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3421 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-26 19:07:13 +00:00
Vladislav Bolkhovitin
08ab8e40be
Rerference on the orig cmd should be taken during data out processing to correctly perform aborts
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3414 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-26 00:06:23 +00:00
Vladislav Bolkhovitin
3c59daab2a
Correctly process being read cmd during abort
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3413 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-26 00:04:01 +00:00
Vladislav Bolkhovitin
5742e61cce
Fix for crash on retry after double reset UA reported by Matteo Tescione <matteo@rmnet.it>
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3412 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-26 00:01:29 +00:00
Vladislav Bolkhovitin
64065a21e9
NOP-In/response timeouts improvements
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3411 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-25 23:50:49 +00:00
Vladislav Bolkhovitin
279ed8fd9f
Revert r3403 and 3405, because they crash on scst_local with blockio initialization on 2.6.38
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3410 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-25 23:16:53 +00:00
Bart Van Assche
399d33dac9
Bug fix for RHEL 6.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3409 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-25 18:02:58 +00:00
Bart Van Assche
a1e077cdd4
RHEL/CentOS 5.6 build fix.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3408 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-25 17:33:00 +00:00
Bart Van Assche
e2f411fdde
Reverted r3404 because it's not a complete fix for RHEL / CentOS 5.6.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3407 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-25 17:24:50 +00:00
Bart Van Assche
14992e34cf
Kernel version updates.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3406 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-25 10:52:44 +00:00
Bart Van Assche
dc99b958ec
Follow-up for r3403: builds again against kernel 2.6.27.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3405 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-25 10:01:18 +00:00
Bart Van Assche
3231e80995
RHEL / CentOS 5.6 build fix.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3404 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-25 09:42:03 +00:00
Bart Van Assche
dfaedfa302
Linux kernel 2.6.39 build fixes.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3403 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-25 09:05:11 +00:00
Bart Van Assche
89a47469b4
Removed a superfluous #include directive.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3402 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-24 06:40:52 +00:00
Vladislav Bolkhovitin
cefe58871a
Attached is a patch to make the names scst_get_full_buf and
...
scst_put_full_buf consistent with the naming convention. That is,
change them to scst_{get,put}_buf_full.
Signed-off-by: Richard Sharpe <realrichardsharpe@gmail.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3401 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-24 00:12:01 +00:00
Vladislav Bolkhovitin
7078c0b26b
Full buffers must always be processed, otherwise bad things could happen
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3400 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-23 21:13:50 +00:00
Vladislav Bolkhovitin
8cb2e02e62
Minor logging fix
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3399 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-22 19:10:08 +00:00
Vladislav Bolkhovitin
802838d27b
HCAs GUIDs should be used as target names
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3397 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-20 22:51:51 +00:00
Vladislav Bolkhovitin
0c8997fb38
Docs update
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3395 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-19 22:56:07 +00:00
Bart Van Assche
07dffb9e8f
Reverted because untested.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3393 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-16 17:54:54 +00:00
Vladislav Bolkhovitin
8560366536
Version changed to 3.0
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3392 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-16 16:18:48 +00:00
Vladislav Bolkhovitin
31a2c05140
Minor cleanup
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3389 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-16 15:45:13 +00:00
Vladislav Bolkhovitin
caffffcf0c
HCAs GUIDs should be used as target names
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3388 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-16 15:36:32 +00:00
Vladislav Bolkhovitin
21d503cbb7
Autogenerated SCST target names made deprecated
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3387 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-16 15:30:33 +00:00
Vladislav Bolkhovitin
a49868a2e1
Possibility to trace reservation conflicts added
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3386 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-16 15:24:43 +00:00
Vladislav Bolkhovitin
179ebc5947
Minor fixes
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3385 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-16 15:17:19 +00:00
Bart Van Assche
22f75a1691
Kernel version updates.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3384 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-15 18:21:05 +00:00
Bart Van Assche
09e34c0500
Removed spaces in front of tabs.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3383 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-13 17:54:15 +00:00