Vladislav Bolkhovitin
f4c17eec55
Merge of the trunk's r3549:
...
- Return no residual if expected values not set instead of BUG_ON(),
because this is valid situation for some preliminary comleted commands.
- Cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3550 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-06 21:33:45 +00:00
Vladislav Bolkhovitin
c121210f0d
Merge the trunk's 3546:
...
Set data_out_in_data_receiving for preliminary completed commands as
well to prevent releasing them too early in iscsi_check_tm_data_wait_timeouts()
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3547 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-06 21:05:21 +00:00
Bart Van Assche
d9447cab56
Corrected t10_dev_id and usn documentation.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3501 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-01 16:54:29 +00:00
Bart Van Assche
c977e99fb2
Complain upon attempts to use the sysfs interface on RHEL 5 or a pre-2.6.26 kernel.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3486 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-27 10:41:57 +00:00
Bart Van Assche
c204be3bf5
scstadmin/Makefile robustness improvements for the "install" target (backported r3480).
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3482 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-26 18:27:15 +00:00
Vladislav Bolkhovitin
45ddfa7fd6
Merge of the trunk's r3466:
...
On NEED_THREAD current function should be immediately finished
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3469 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-20 22:46:11 +00:00
Vladislav Bolkhovitin
a194f8e23e
Merge of the trunk's r3450 (partially leaked in the previous merge)
...
TM handling fixes, part2, hopefully, final.
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3468 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-20 22:44:48 +00:00
Vladislav Bolkhovitin
8cba8af435
Merge the trunk's r3439:
...
Fix incorrect errors reporting on deleting LUNs from groups in the proc interface
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3467 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-20 22:36:06 +00:00
Vladislav Bolkhovitin
f1c4e942ac
Merge of the trunk's r3435:
...
MultiP must be 1 and HiSup 0
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3436 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-03 21:07:02 +00:00
Vladislav Bolkhovitin
467ba9c83c
Partial merge of the trunk's rr 3413, 3414 and 3425:
...
- Correctly process being read cmd during abort
- 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/branches/2.0.0.x@3426 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-29 21:14:42 +00:00
Bart Van Assche
cf857cdcac
scripts/blockdev-perftest: works now on RHEL 5 / switched from sync to psync
...
(merged r2394 and 2741 from trunk).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3381 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-13 16:06:41 +00:00
Bart Van Assche
cdf86b4b16
Made it possible to build srpt against an older kernel + OFED (svn merge -c3376,3377 https://scst.svn.sourceforge.net/svnroot/scst/trunk ).
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3380 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-13 16:02:42 +00:00
Bart Van Assche
493af798ee
Copied r3377 of the some scripts and the nightly build config file from the trunk.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3378 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-10 14:39:31 +00:00
Bart Van Assche
db25b605c0
Added more srpt/patches/kernel-*-pre-cflags.patch files (svn merge -c3371,3373,3374 https://scst.svn.sourceforge.net/svnroot/scst/trunk ).
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3375 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-10 12:01:23 +00:00
Bart Van Assche
6c252e19da
Added file srpt/patches/kernel-2.6.32-pre-cflags.patch to the repository (merged r3369 from the trunk).
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3370 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-10 09:03:58 +00:00
Bart Van Assche
459277d501
Copied ibmvstgt/Makefile from trunk.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3368 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-09 06:49:14 +00:00
Bart Van Assche
8619defedc
Partially merged r3194 and r3203 from the trunk.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3366 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-07 19:45:38 +00:00
Bart Van Assche
36ddc9df2a
2.6.37 build fix (partially merged r3193 from trunk).
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3365 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-07 18:43:30 +00:00
Bart Van Assche
89d4b044c3
2.6.38 build fixes (merged r3294 from trunk).
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3364 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-07 18:42:45 +00:00
Bart Van Assche
89f8d75a95
Merged r3193 from trunk.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3363 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-07 18:34:07 +00:00
Bart Van Assche
b281620287
Copied 2.6.3[78] patches from trunk.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3362 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-07 18:15:35 +00:00
Vladislav Bolkhovitin
231ec73f82
Marge of the trunk's r3359:
...
INQUIRY has 2 bytes allocation length
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3360 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-06 12:12:05 +00:00
Bart Van Assche
589c0a2d8b
ib_srpt: Fix potential out-of-bounds array access
...
(Merged r3262 from the trunk.)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3263 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-02-26 09:52:03 +00:00
Bart Van Assche
c5b3b8bd08
Handle fatal errors properly in srpt_xmit_response()
...
(Merged r3257 from the trunk.)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3259 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-02-24 17:59:48 +00:00
Bart Van Assche
7ff3da9aba
2.6.38 build fix (partially merged r3239 from the trunk).
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3258 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-02-24 17:53:25 +00:00
Bart Van Assche
7f82dd8421
Keep unit attention list empty flag and the list itself in sync.
...
Without this patch hundreds of "scst: scst_set_pending_UA:6216:Setting pending UA cmd ..." messages are logged after a LUN has been added or removed.
This patch fixes a bug that was reported by Ido Benda.
(Merged r3254 from the trunk.)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3255 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-02-23 17:11:07 +00:00
Vladislav Bolkhovitin
d68f6300a2
Merge of the trunk's r3248:
...
Fix problem with handling internal commands reported by Hiroyuki Sato <hiroysato@gmail.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3249 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-02-13 17:02:54 +00:00
Vladislav Bolkhovitin
dd13cd04d6
Merge of the trunk's r3231 and r3232:
...
Docs update
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3233 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-27 23:21:21 +00:00
Vladislav Bolkhovitin
59e64ad3d5
Version updated
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3221 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-14 21:04:02 +00:00
Vladislav Bolkhovitin
6443337765
2.0.0.1 is ready for release
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3217 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-13 19:24:37 +00:00
Vladislav Bolkhovitin
7dba2398d2
Merge of the trunk's r3214-3215
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3216 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-13 19:15:50 +00:00
Vladislav Bolkhovitin
d906b4ab62
Partial merge of the trunk's r3203:
...
Returning of DIRECT contexts by scst_estimate_context() disabled (see comment in the patch why)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3204 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-10 18:39:41 +00:00
Vladislav Bolkhovitin
455a696228
Merge of the trunk's r3200:
...
Copyrights updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3201 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-06 20:17:38 +00:00
Vladislav Bolkhovitin
1478738737
Fixed accidentally deleted line during r3163 merge
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3197 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-06 18:10:52 +00:00
Bart Van Assche
414221d1c8
Updated my e-mail address in copyright statements and README files (merged r3175 from the trunk).
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3176 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-21 18:53:35 +00:00
Vladislav Bolkhovitin
5209a009a5
Version update to 2.0.0.1-rc1
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3171 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-21 14:53:41 +00:00
Vladislav Bolkhovitin
2b6f1bff04
scstadmin docs update to make them more up to date
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3168 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-21 13:14:12 +00:00
Vladislav Bolkhovitin
a8b2e8b69c
README.sysfs renamed to README
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3167 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-21 13:01:40 +00:00
Vladislav Bolkhovitin
9c7d94c57a
README renamed to README.procfs
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3166 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-21 13:00:52 +00:00
Vladislav Bolkhovitin
bed8b89090
Version set to 2.0.0
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3165 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-21 12:39:06 +00:00
Vladislav Bolkhovitin
527e53888b
Merge of the trunk's r3163:
...
Since algorithm to autogenerate t10_dev_id and usn is going to be changed, make usn user configurable and during transition period both t10_dev_id and usn always key to make scstadmin to always save them.
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3164 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-21 12:37:17 +00:00
Vladislav Bolkhovitin
90fff1fba2
Merge of the trunk's r3160:
...
Fix lost line in iscsi_scst_itf_ver.h generation lead to incorrect generation of this file. Reported by torn5 <torn5@shiftmail.org >.
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3161 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-21 11:18:57 +00:00
Vladislav Bolkhovitin
3b23f6d223
Merge of the trunk's r3151 and 3152:
...
Cleanup: eliminate a superfluous cast and unnest an if-statement
and
I/O context creation and cleanup in SCST command-processing threads is
protected by io_context_mutex. The patch below changes that mutex from a
single mutex for all command threads to one mutex per thread pool.
+
Two quickly succeeding command thread management actions, e.g. setting both
threads_num and threads_pool_type via scst.conf, can trigger the bug mentioned
below. That bug can be triggered because kthread_stop() can stop a thread
before it has started. So it can happen that an I/O context is created inside
scst_cmd_thread() but not cleaned up because the thread for which
p_cmd_threads->nr_threads == 1would evaluate to true is never started. The
patch below fixes this by guaranteeing that if an I/O context has been created
for a thread pool that it gets cleaned up too.
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
with fixes/cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3153 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-20 19:15:44 +00:00
Bart Van Assche
8e32148fc1
ib_srpt: Fixed a bug in the RDMA channel disconnection processing code.
...
(Merged r3143 from the trunk.)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3144 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-19 13:33:46 +00:00
Vladislav Bolkhovitin
3a01db3279
Merge of the trunk's r3131:
...
Making creation of default target and session by default
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3133 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-18 15:57:34 +00:00
Vladislav Bolkhovitin
efe33340f2
Merge of the trunk's r3121:
...
Fix minor issue when generating INQUIRY responses for not existing LUNs.
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3122 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-17 14:40:16 +00:00
Bart Van Assche
3ce2f9446c
Corrected feedback e-mail address (merged r3112 and r3113 from the trunk).
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3114 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-16 16:25:23 +00:00
Bart Van Assche
5c4c0defea
Merged r3053 and r3096 from the trunk (iSCSI how-to updates).
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3111 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-16 15:46:06 +00:00
Vladislav Bolkhovitin
07ab8e7e3f
Merge of the trunk's r3094:
...
Fix wrong last_len computation reported by ido benda <idombd@gmail.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3095 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-15 16:47:08 +00:00
Bart Van Assche
53d401ac36
Don't read uninitialized variables (was introduced in r2868).
...
(Merged r3030 from the trunk.)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3031 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-12 12:44:24 +00:00