Vladislav Bolkhovitin
c95ef014d7
Update for kernel 3.1
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3902 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-27 19:11:40 +00:00
Vladislav Bolkhovitin
6fccbdfd9a
Fix incorrect handling of jiffies wrap around as pointed out by Bart Van Assche.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3901 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-26 19:32:58 +00:00
Bart Van Assche
05caa249b5
ib_srpt: Avoid a sporadic 160s delay when a session is unregistered or when removing the ib_srpt kernel module during I/O
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3900 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-26 17:42:37 +00:00
Bart Van Assche
9ea2e26aaa
ib_srpt: Avoid stopping polling too early for IB completions.
...
This resulted in unnecessary complaints about IB completions not being
received in time when removing the ib_srpt kernel module during I/O. Note:
it is still possible that such complaints occur, but much less frequent.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3899 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-25 18:05:57 +00:00
Vladislav Bolkhovitin
64fad2e6d2
Make usage of scst_suspend_activity() more flexible by making its timeout be explicit
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3898 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-24 22:16:42 +00:00
Bart Van Assche
aa12492349
ib_srpt: Make the error message about rejected login more clear
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3897 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-20 16:59:15 +00:00
Vladislav Bolkhovitin
c8392145fa
Reverse r3894, because it is incorrect. There is no order dependency
...
between CPUs here, so there's no need in the corresponding fence command.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3896 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-11 03:13:18 +00:00
Bart Van Assche
75bfcdfdbe
scst_vdisk, blockio: Add write-through (FUA) support.
...
From: Etienne Dechamps <e-t172@akegroup.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3895 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-10 09:23:32 +00:00
Bart Van Assche
16d26a8ba1
scst_vdisk, vdev_sysfs_process_get_filename(): Make sure that dev->dev_unregistering is reread from memory in each loop iteration. Note: the now removed "(volatile bool)" cast did not have any effect.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3894 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-10 08:27:27 +00:00
Bart Van Assche
d9658fcda4
Reran performance measurements
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3892 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-08 11:08:55 +00:00
Bart Van Assche
58a2b2ece8
Set executable property
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3891 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-05 17:15:39 +00:00
Bart Van Assche
74264389cd
scst: Add script for rebuilding RHEL / CentOS / Scientific Linux kernel RPMs
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3890 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-05 17:14:23 +00:00
Bart Van Assche
29530f6bf5
srpt/README: Add note about DEVICE.threads_num
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3889 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-05 16:34:09 +00:00
Bart Van Assche
74e293d282
scst/README: Add a note about how ESX works with t10_dev_id
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3888 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-05 16:27:25 +00:00
Vladislav Bolkhovitin
3c54b0c18c
Prevent reverse order of management commands
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3887 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-05 02:11:19 +00:00
Vladislav Bolkhovitin
fdce259c4f
Limit max unmap LBA count to device size
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3886 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-05 02:08:51 +00:00
Bart Van Assche
9118d7c71f
Nightly build: include the latency measuring code
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3885 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-28 17:42:50 +00:00
Bart Van Assche
3f97e4c696
scst, latency statistics:
...
- Use 64 bits instead of 32 for each "processed commands" counter.
- Make sure there is at least one space between adjacent columns.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3884 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-28 16:38:27 +00:00
Vladislav Bolkhovitin
4ec4d341eb
Micro-optimize scst_unpack_lun(): avoid comparing "len" twice with the constant "2".
...
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3883 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-28 02:18:44 +00:00
Vladislav Bolkhovitin
32991d0fd4
Change reporting processed_cmds to unsigned as suggested by ido benda <idombd@gmail.com>
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3882 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-28 02:07:50 +00:00
Bart Van Assche
ee2dead009
scst, latency statistics: Introduce timespec_to_ns().
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3879 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-24 14:11:39 +00:00
Bart Van Assche
24a453bc16
ib_srpt: Avoid that the cleanup code invoked after rejecting a new initiator connection triggers a race condition
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3877 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-22 17:51:19 +00:00
Bart Van Assche
f3425ccf02
ib_srpt: Remove an outdated comment
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3876 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-22 17:49:45 +00:00
Bart Van Assche
80a0c069de
ib_srpt: Clean up two PRINT_ERROR() statements
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3875 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-22 17:49:04 +00:00
Bart Van Assche
ce85be1595
ib_srpt: Remove a superfluous __srpt_close_ch() call
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3872 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-18 12:23:13 +00:00
Bart Van Assche
1c358f4222
ib_srpt: Fix "rejected SRP_LOGIN_REQ because creating a new RDMA channel failed"
...
Fix two race conditions that could trigger this failure:
- Completion thread not woken up after channel state change.
- Reception of Last WQE event before the channel queue pair was reset.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3870 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-18 11:15:17 +00:00
Bart Van Assche
afe7e9c6ec
ib_srpt: Show the state name in debug messages
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3869 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-18 11:04:10 +00:00
Bart Van Assche
407f5b0c64
Follow-up for r3866
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3867 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-18 08:01:29 +00:00
Bart Van Assche
8afd4e9d4e
ib_srpt: Reduce the Last WQE wait time
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3866 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-18 07:38:37 +00:00
Vladislav Bolkhovitin
94418431ce
Patch from Abhilash Sankar <Abhilash.S@hcl.com> with some fixes
...
Issue:
------------
The DevRegAttribute is sending a different Source Attribute (ISCSI name) which
represents the Storage Node for each target. So Microsoft isns server considers
the last request as the storage node and doesn't discover the previous targets.
Root Cause
----------------
Function ISNS_FUNC_DEV_ATTR_REG
Target A
Source attribute
ISCSI-Name = <IQN A Name>
Operating Attribute
ISCSI-Name = <IQN A Name>
Flags
Replace Access = 1
Target B
Source attribute
ISCSI-Name = <IQN B Name>
Operating Attribute
ISCSI-Name = <IQN B Name>
Replace Access = 1
So as per the request format Microsoft isns Server always takes the last target
as the source node. and register the same. Hence it doesn't discover the
targets other than last one. The Source Attribute has to be fixed for all targets. It
would be better if we use the first target iscsi name (rather than the last target
iscsi name) as source attribute iscsi name to represent the storage node.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3863 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-18 00:58:15 +00:00
Bart Van Assche
aa7647b0bb
Fix a typo introduced in r3858
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3859 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-17 15:38:09 +00:00
Bart Van Assche
191f40304d
ib_srpt: Make sure that rmmod finishes
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3858 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-17 15:24:37 +00:00
Bart Van Assche
ff60ad9a52
ib_srpt: Don't wait forever for the Last WQE event
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3857 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-17 15:23:36 +00:00
Bart Van Assche
c3c23dcb7e
ib_srpt: Make srpt_release_sdev() logging more informative
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3856 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-17 15:22:13 +00:00
Bart Van Assche
97547c2f1d
ib_srpt: Relax a WARN_ON() statement such that it doesn't fire needlessly
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3855 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-17 15:21:07 +00:00
Bart Van Assche
5f0326aa3d
ib_srpt: Mask off AGN_MASK bits before invoking ib_cm_listen()
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3854 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-17 15:19:45 +00:00
Bart Van Assche
40c8c3ae0a
ib_srpt: Make error reporting more detailed
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3853 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-17 15:17:41 +00:00
Vladislav Bolkhovitin
29ebc5ba12
Web updates
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3850 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-08 02:17:01 +00:00
Bart Van Assche
5a4ee2342b
ib_srpt: Remove to-do list because outdated
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3847 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-07 19:03:06 +00:00
Bart Van Assche
bde71b8cff
scst_vdisk, thin provisioning: unmap the largest range possible even if the
...
upper bound of the range is not a multiple of PAGE_CACHE_SIZE. This is a
follow-up for r3799 and removes the PRINT_ERROR() statement introduced in that
revision.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3844 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-07 18:52:46 +00:00
Bart Van Assche
b5865c7969
/etc/init.d: When installing SCST 3.0, disable and remove the now obsolete iscsi-scst and qla2x00t init scripts.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3843 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-04 11:57:39 +00:00
Vladislav Bolkhovitin
43d576aa48
Changelogs updated
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3842 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-01 20:15:42 +00:00
Vladislav Bolkhovitin
370735f023
Web updates
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3841 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-01 19:47:41 +00:00
Vladislav Bolkhovitin
29a71a91e5
Update tag for 2.1.0 release
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3838 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-01 19:04:24 +00:00
Vladislav Bolkhovitin
960239ed1e
- Fix possible deadlock between vdev_sysfs_process_get_filename() and vdisk_del_device()
...
- Cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3833 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-01 18:22:27 +00:00
Bart Van Assche
2eb5d1ea6c
nightly build: kernel version updates
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3832 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-31 18:11:21 +00:00
Vladislav Bolkhovitin
1da1aa9dd4
Fix possible crash on rel_tgt_id set on transports without is_target_enabled() defined.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3831 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-25 18:08:45 +00:00
Vladislav Bolkhovitin
0eb108577a
Suppoert for rotational attribute added
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3830 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-24 15:30:59 +00:00
Vladislav Bolkhovitin
978e073a28
Mode pages cleanup
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3829 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-24 00:20:06 +00:00
Bart Van Assche
648920e86b
scst: Avoid triggering BUG() on uniprocessor systems
...
On uniprocessor systems with lock debugging disabled spin_is_locked()
returns false. Disable the spin_is_locked() checks if CONFIG_SMP has not
been defined.
Reported-by: Frank <frank@debian-nas.org >
Signed-off-by: Dave Carroll <dcarroll@astekcorp.com >
Cc: scst-devel <scst-devel@lists.sourceforge.net >
Cc: Frank <frank@debian-nas.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3828 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-22 19:19:56 +00:00