Vladislav Bolkhovitin
cbb7de538f
More performance and scalability improvements
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3222 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-14 21:05:25 +00:00
Vladislav Bolkhovitin
3cf855fe00
Web updates
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3220 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-14 21:01:54 +00:00
Bart Van Assche
ec22199d8b
Try to obtain kernel patches from the longterm directory if not found in the usual directory.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3219 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-14 17:05:30 +00:00
Vladislav Bolkhovitin
9a2c977e68
Per sessions commands stats implemented based on patch from Steven Umbehocker <steven.umbehocker@osnexus.com>
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3218 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-14 11:51:22 +00:00
Vladislav Bolkhovitin
79c658e0f1
More context fixes and cleanups
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3215 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-13 18:56:11 +00:00
Vladislav Bolkhovitin
3aee70c90f
- Fix possible incorrect atomic context on exec stages
...
- Limit max tasklet commands via scst_max_tasklet_cmd global attribute to prevent possible starvation under heavy load and in some cases im
prove performance
- Logging improvements
- Docs update
- Cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3214 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-13 14:25:09 +00:00
Vladislav Bolkhovitin
dd9ca37b42
Now scst_pre_parse() called in __scst_init_cmd(), so there's no point to call scst_get_cdb_info() once again
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3213 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-13 12:49:33 +00:00
Vladislav Bolkhovitin
dfa288aaa0
Cleanup
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3212 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-13 12:47:36 +00:00
Vladislav Bolkhovitin
e6d32fb639
Cleanup
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3211 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-13 12:41:02 +00:00
Vladislav Bolkhovitin
a23297eb40
Minor memory leak fixed
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3210 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-12 18:37:11 +00:00
Vladislav Bolkhovitin
9f3646ea96
- Links events handling review
...
- Minor fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3209 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-12 15:31:52 +00:00
Vladislav Bolkhovitin
72f11e6afb
Version corrected
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3208 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-12 13:16:51 +00:00
Vladislav Bolkhovitin
7e98e5c62f
Logging cleanups and fixes
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3207 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-12 13:10:14 +00:00
Vladislav Bolkhovitin
cf12f93cd3
Cleanup: CONFIG_SCST_ORDERED_READS removed
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3206 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-12 13:05:45 +00:00
Vladislav Bolkhovitin
f15f2cdd5f
- Making scst_local be safe with BLOCKIO and pass-through.
...
- Docs update
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3205 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-11 13:39:27 +00:00
Vladislav Bolkhovitin
411fb4f623
- Update for 2.6.37
...
- Docs updated
- 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/trunk@3203 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-10 18:34:29 +00:00
Mark Buechler
229f8cff60
- Expose -set_grp_attr argument in help output.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3202 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-07 15:38:51 +00:00
Vladislav Bolkhovitin
f3238333dd
Copyrights updated
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3200 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-06 20:02:04 +00:00
Bart Van Assche
579a155d90
Make -write_config write device names in alphabetical order.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3199 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-06 18:31:58 +00:00
Vladislav Bolkhovitin
7bf6429246
Let's not crash if BUG triggered with IRQs or BHs disabled. At least, in the debug build.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3198 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-06 18:29:17 +00:00
Vladislav Bolkhovitin
ff8b7ea523
Revert excessive marking devices lost to what the mainline qla2xxx is doing.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3196 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-06 13:30:45 +00:00
Bart Van Assche
b8cc8e119d
Added kernel 2.6.37 to the nightly build.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3195 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-05 14:00:47 +00:00
Bart Van Assche
2dce167153
scst_local: Ported to kernel 2.6.37.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3194 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-05 13:58:18 +00:00
Bart Van Assche
49d6385405
Disable tracing when running regression tests because sparse chokes on the code in the tracing macros.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3193 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-05 13:28:58 +00:00
Bart Van Assche
8d0406a0cb
ib_srpt: Reformatted one statement to keep checkpatch happy.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3192 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-05 13:15:01 +00:00
Bart Van Assche
1b72343266
Added "const" to keep checkpatch happy.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3191 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-05 13:14:25 +00:00
Bart Van Assche
6d977ab9e1
Added "const" to keep checkpatch happy.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3190 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-05 13:14:05 +00:00
Bart Van Assche
7e8b205bf1
Removed a superfluous hunk from a patch.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3189 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-05 13:13:11 +00:00
Bart Van Assche
e40875d9b9
specialize-patch: Generalized a pattern.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3188 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-05 13:12:14 +00:00
Vladislav Bolkhovitin
562a0f7ea3
- FW_NOT_READY timeout decreased to 1s
...
- Cleanups.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3185 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-29 20:15:39 +00:00
Vladislav Bolkhovitin
ca08079b44
A typo making expression the opposite fixed. Reported by Bart Van Assche <bvanassche@acm.org>
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3184 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-29 20:14:00 +00:00
Vladislav Bolkhovitin
401b566050
Web updates
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3179 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-24 19:50:13 +00:00
Vladislav Bolkhovitin
68072411fe
Minor discovery and version info improvements
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3178 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-24 18:58:06 +00:00
Vladislav Bolkhovitin
c0eaac368b
Remove confusing "mainline-ready" statement.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3177 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-21 19:20:49 +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
Vladislav Bolkhovitin
42ceeef996
Update docs to make former README.sysfs default README
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3174 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-21 18:08:52 +00:00
Vladislav Bolkhovitin
95344e3368
Rename README.sysfs to README
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3173 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-21 18:03:47 +00:00
Vladislav Bolkhovitin
f2bdf9f8ec
Rename README to README.procfs
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3172 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-21 18:03:04 +00:00
Vladislav Bolkhovitin
ca0a6d1f4c
Tag for 2.0 updated
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3170 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-21 14:51:23 +00:00
Vladislav Bolkhovitin
2ee493a005
Web updates
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3169 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-21 14:48:02 +00:00
Vladislav Bolkhovitin
698f4a967c
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/trunk@3163 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-21 12:24:44 +00:00
Vladislav Bolkhovitin
a16d010935
Comment extended
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3162 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-21 11:51:10 +00:00
Vladislav Bolkhovitin
2676966858
Fix lost line in iscsi_scst_itf_ver.h lead to incorrect generation of this file. Reported by torn5 <torn5@shiftmail.org>.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3160 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-21 11:07:42 +00:00
Vladislav Bolkhovitin
6ed490f251
Remove dead code. According to the Linux Device Drivers, 3rd Edition book,
...
alloc_pages() and free_pages() must be called with the same order, so
that optimization cannot work (and that why it's currently disabled).
From frank zago <fzago@systemfabricworks.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3157 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-20 20:04:51 +00:00
Vladislav Bolkhovitin
25dd5b2e2e
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/trunk@3152 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-20 19:03:49 +00:00
Vladislav Bolkhovitin
b7212cf420
Cleanup: eliminate a superfluous cast and unnest an if-statement
...
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3151 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-20 18:27:57 +00:00
Vladislav Bolkhovitin
cb599510d6
Two local variables in scst_main.c can be eliminated by using appropriate
...
format specifiers.
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3150 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-20 18:25:07 +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
94b01ca7a3
Added 2.6.37-related files (svn merge -c3129 https://scst.svn.sourceforge.net/svnroot/scst/branches/sysfs-tree-changes ).
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3146 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-20 14:12:44 +00:00
Bart Van Assche
36d3ac3059
ib_srpt: Fixed a bug in the RDMA channel disconnection processing code.
...
(Merged r3142 from the sysfs-tree-changes branch.)
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3143 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-19 13:29:08 +00:00