Commit Graph

2212 Commits

Author SHA1 Message Date
Vladislav Bolkhovitin
34d4e3e693 Fix for Persistent Reservations problem with devices >2TB in size reported by Open-E (Artur Piechocki and Aleksey Kondratov)
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2486 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-28 18:40:18 +00:00
Vladislav Bolkhovitin
824cd78924 Fixes for PR problems reported by Gadi Oxman <gadi.oxman@xtremio.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2481 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-27 18:46:58 +00:00
Vladislav Bolkhovitin
784ac1e52e Fix possible crash on access to not existing LUN with CONFIG_SCST_MEASURE_LATENCY enabled reported by ido benda <idombd@gmail.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2472 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-26 12:58:24 +00:00
Vladislav Bolkhovitin
12f4f75a81 Update for 2.6.36 based on patch from Bart Van Assche <bvanassche@acm.org>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2470 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-26 12:30:40 +00:00
Vladislav Bolkhovitin
e1c8e07208 Don't clear UAs on reset
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2465 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-25 18:06:59 +00:00
Vladislav Bolkhovitin
27ed60c19d Let's be safe and always do memory barrier after all *_get().
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2462 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-25 13:09:47 +00:00
Vladislav Bolkhovitin
499da51437 Revert r2446 as wrong
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2461 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-25 13:00:20 +00:00
Bart Van Assche
8b248b67c1 ib_srpt: Added a comment.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2459 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-24 18:32:14 +00:00
Bart Van Assche
d07bd65ba1 ib_srpt: Moved a source code comment.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2458 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-24 11:58:34 +00:00
Bart Van Assche
fa49407967 ib_srpt: Test procedure update.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2457 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-24 09:31:03 +00:00
Bart Van Assche
b9c17588fa ib_srpt: Changed queue full message severity level from ERROR to WARNING since this condition is not fatal.
ib_srpt: Micro-optimization: pass the number of bytes that will be sent to ib_dma_sync_single_for_device() instead of the size of the entire DMA buffer.
ib_srpt: Fixed two bugs in the code for tracking the number of elements available in the IB send queue and that could be triggered by a send queue overflow.

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2456 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-24 09:30:40 +00:00
Bart Van Assche
172c211176 ib_srpt: Fixed bug in IB send queue overflow handling.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2455 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-23 14:32:15 +00:00
Vladislav Bolkhovitin
86814a9503 Changing SCST objects freeing to be done in their kobjects release() functions as requested by Greg KH in http://lkml.org/lkml/2010/10/14/299
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2446 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-22 17:21:47 +00:00
Vladislav Bolkhovitin
d1745448cf Small thin provisioning improvements
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2445 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-22 13:08:04 +00:00
Vladislav Bolkhovitin
ae1df6bead Small docs update
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2444 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-22 12:43:16 +00:00
Bart Van Assche
6786d02fa6 ib_srpt: Documentation update.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2443 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-21 19:34:44 +00:00
Bart Van Assche
8be8b4e66d svn merge -r2380:2441 https://scst.svn.sourceforge.net/svnroot/scst/branches/srpt-separate-rx-tx-buffers .
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2442 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-21 19:21:10 +00:00
Bart Van Assche
078aa2a35a Reverted one whitespace change from r2431 because it made the source code less readable.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2440 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-21 18:56:24 +00:00
Bart Van Assche
bda82476ad Added per-kernel option -i.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2439 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-21 18:25:10 +00:00
Bart Van Assche
9c20ed6584 Process tabs properly.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2432 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-21 14:06:51 +00:00
Bart Van Assche
2df8fb30d5 Whitespace-only changes: addressed most whitespace complaints reported by the 2.6.36 checkpatch tool.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2431 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-21 13:10:15 +00:00
Bart Van Assche
56d40a5505 Patch header update for the 2.6.36 patches (does not build yet !)
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2430 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-21 12:22:28 +00:00
Bart Van Assche
3667335dca Copied and renamed the 2.6.35 in-tree files (does not build yet!).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2429 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-21 12:20:34 +00:00
Bart Van Assche
6f7e19586a ibmvstgt: Switched to kernel version 2.6.36.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2428 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-21 12:01:04 +00:00
Bart Van Assche
deceabc0cf Added to repository.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2427 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-21 11:41:42 +00:00
Vladislav Bolkhovitin
690c14066f Web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2425 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-18 19:38:34 +00:00
Vladislav Bolkhovitin
d302ce64ab Patch from Uri Yanai <Uri.Yanai@ngsoft.com> fixing handling of global events in IMMED_NOTIFY handler
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2424 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-18 18:59:41 +00:00
Vladislav Bolkhovitin
cfa90dc087 Fix possible crash on ABORT TASK SET TM command
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2422 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-18 18:39:00 +00:00
Vladislav Bolkhovitin
c966f14eae scst_pre_parse() must be called before scst_cmd_set_sn() to correctly process implicit HQ and ORDERED commands, so move it to __scst_init_cmd(). As consequence, SCST_CMD_STATE_PRE_PARSE state isn't needed anymore, hence remove it.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2420 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-18 18:23:08 +00:00
Bart Van Assche
31a346125d Moved SCST to the end of drivers/Makefile, such that it is loaded and initialized after all other storage drivers.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2417 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-16 16:37:03 +00:00
Bart Van Assche
a05edc63c1 iSCSI-SCST: Added missing LIBCRC32C dependency.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2416 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-16 16:36:00 +00:00
Bart Van Assche
e4e8947c8d ibmvstgt: Generate clean patches, even if the input contains #ifdefs on LINUX_VERSION_CODE.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2415 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-16 14:39:52 +00:00
Vladislav Bolkhovitin
1af1e674d4 Patch from Dorit Halsadi <Dorit.Halsadi@dothill.com> and Uri Yanai <Uri.Yanai@ngsoft.com> adding NPIV support to the SCST Target driver for Qlogic 24xx/25xx Fibre Channel cards
with minor fixes.

Note: you need NPIV-supporting firmware as well as NPIV-supporting switches to use NPIV.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2408 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-14 18:11:22 +00:00
Mark Buechler
a2dc603642 - Differentiate between hardware and virtual targets within the config file when using mixed type drivers.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2407 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-14 14:39:12 +00:00
Vladislav Bolkhovitin
2b1490584c Merge of r2395 by Bart Van Assche <bvanassche@acm.org>:
The kernel module iscsi_scst loads again on RHEL 5 (Fixed "iscsi_scst: Unknown symbol set_cpus_allowed_ptr").



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2406 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-14 14:32:00 +00:00
Vladislav Bolkhovitin
f6da0ea9c5 Fix for 2 possible crash scenarios one of which reported by 陳 七嘉 <volcom721@hotmail.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2405 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-14 14:27:29 +00:00
Vladislav Bolkhovitin
19c072ec86 Small Tree Communications added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2400 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-11 19:35:29 +00:00
Bart Van Assche
bfea7d336b Works now on RHEL 5 too.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2394 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-11 17:39:12 +00:00
Mark Buechler
961f45ee92 - Fix virtual targets for drivers which also support hardware targets.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2392 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-11 16:24:51 +00:00
Bart Van Assche
a75d3cc2c3 ib_srpt: Documentation update.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2391 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-10 11:33:29 +00:00
Bart Van Assche
5f2c6acabf Added kernel version to patch directory name.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2386 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-09 16:09:04 +00:00
Bart Van Assche
bb540fa9f8 ib_srpt: Removed an unused variable.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2379 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-09 07:25:55 +00:00
Bart Van Assche
26f9165b48 Made sure that sparse can process scst.h. Apparently there is a bug in sparse which makes sparse interpret single quotes in preprocessor statements as character delimiters.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2378 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-08 19:40:18 +00:00
Vladislav Bolkhovitin
cef1b4cdff The changes included in the patch below are:
- If someone tries to build SCST on an RHEL 5 system without having
run 'make enable_proc' first, complain.
- Do not define set_cpus_allowed_ptr() on RHEL 5 since RHEL 5 does
have a declaration for this function.
  The function itself is not exported from the kernel however (this is probably a bug). Because of that, replace
the call to set_cpus_allowed_ptr() in scst_main.c by a call to set_cpus_allowed().
- Do not define the variable 'err' on kernels where that variable is
not used in order to avoid a compiler warning.
- Also in scst_vdisk.c, pass a 16-bit value as the first argument of
put_unaligned() when writing to a 16-bit variable in order to avoid a compiler warning.

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

with fixes and additions:

 - In scst_vdisk.c we need 32-bit values, not 16, fixed
 - Optimal UNMAP granuality changed to 1.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2377 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-08 19:30:39 +00:00
Bart Van Assche
5606dcc10e Updated test procedure.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2376 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-08 19:21:00 +00:00
Bart Van Assche
ac5a366941 ib_srpt: Further improved robustness against HCA firmware bugs.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2375 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-08 19:02:35 +00:00
Vladislav Bolkhovitin
e32b9a721e Fixes 2 iSNS server initialization problems noticed by Tan Eric <Eric.Tan@bdt-cn.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2373 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-08 18:10:12 +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
Vladislav Bolkhovitin
f245543a36 Cleanup of support of kernels prior 2.6.18
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2368 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-08 13:01:15 +00:00
Bart Van Assche
5688aec792 Updated Subversion ignore list.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2367 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-08 10:43:15 +00:00