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
Bart Van Assche
e5d1af7b12
Rearranged SCST patch order.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2366 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-08 10:40:24 +00:00
Bart Van Assche
8fdcfcef96
Don't generate empty patches.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2365 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-08 10:35:32 +00:00
Bart Van Assche
16436f232a
Backported to RHEL 5.5 (compile-tested only).
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2364 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-07 17:20:51 +00:00
Bart Van Assche
b67e6a893f
Rearranged names and contents of the broken-out SCST patchset.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2363 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-07 10:58:45 +00:00
Bart Van Assche
6e152a3be1
#elif handling should now really be correct.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2362 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-06 20:26:38 +00:00
Bart Van Assche
89a2090064
Fixed a bug in #elif handling.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2361 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-06 19:58:06 +00:00
Vladislav Bolkhovitin
b4dfb7cda6
Unsupported (yet) patch making QLA adapters behave in the target mode from the very beginning with description from Bryan Mesich <bryan.mesi
...
ch@ndsu.edu >.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2360 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-06 18:51:51 +00:00
Bart Van Assche
9eac25591f
If option -p has been specified, run checkpatch on the split out patches instead
...
of the single large patch.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2359 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-06 18:25:58 +00:00
Bart Van Assche
6ced6c5338
Added command-line option -p: apply SCST as multiple patches to the Linux kernel instead of a single patch.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2358 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-06 18:06:07 +00:00
Bart Van Assche
160be2c30a
Reverted r2327 because it is no longer necessary.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2357 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-06 17:52:28 +00:00
Bart Van Assche
b5c8cdb121
Bug fix: made sure that nested invocations of process_patch() do not overwrite each others output.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2356 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-06 17:50:50 +00:00
Vladislav Bolkhovitin
56b82883b1
Let's make check for SCST_PR_DIR not global, but per created device, because it's more reliable and flexible.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2354 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-06 12:26:11 +00:00
Bart Van Assche
d23c7b3b85
ibmvstgt: started backporting.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2353 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-06 11:02:24 +00:00
Bart Van Assche
7c399c3226
Fixed checkpatch complaints about whitespace.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2352 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-06 10:30:54 +00:00
Vladislav Bolkhovitin
d7e087e3b2
Minor extended CDBs handling cleanups and fixes
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2351 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-05 20:06:54 +00:00
Vladislav Bolkhovitin
6d0fc28d20
Fix compilation on kernels between 2.6.28 and 2.6.34 inclusive.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2350 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-05 19:09:08 +00:00
Vladislav Bolkhovitin
2370609897
Minor cleanups
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2349 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-05 18:45:20 +00:00
Bart Van Assche
6f6b0a4acd
ib_srpt: Updated test instructions.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2348 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-05 16:55:32 +00:00
Bart Van Assche
4009410ce2
Further lock contention reduction / exported max_host_blocked.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2347 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-04 17:05:10 +00:00
Bart Van Assche
92b70d4f83
ib_srpt: Report firmware bugs instead of silently ignoring these.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2346 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-04 16:57:03 +00:00
Bart Van Assche
ef0016aa7e
Reverted r2344 because it reveals locking bugs in the SCSI layer, e.g. scsi_request_fn() being reentered.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2345 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-03 11:51:41 +00:00
Bart Van Assche
26a20ad5ea
Added bdi patch / further performance optimizations.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2344 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-03 11:16:31 +00:00
Bart Van Assche
c42c4159ed
Fixed a checkpatch complaint.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2343 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-03 07:26:03 +00:00
Bart Van Assche
c130e11f44
ib_srpt: race-at-session-unregistration-fix (partially reverted r2339).
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2342 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-02 17:45:57 +00:00
Bart Van Assche
c935c8e28d
ib_srpt: Increased ib_wc array size back from 4 to 16.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2341 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-02 16:05:54 +00:00
Bart Van Assche
e3fcb70f50
ib_srpt documentation: Shortened a note.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2340 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-02 15:56:46 +00:00
Bart Van Assche
d45f587bdc
Fixed a race between session unregistration and queueing new commands.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2339 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-02 15:54:39 +00:00
Bart Van Assche
dee70735c5
ib_srpt: Added a note about unloading while I/O is ongoing.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2338 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-02 15:28:33 +00:00
Bart Van Assche
1df8d51091
Source code comment update.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2337 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-02 15:09:12 +00:00
Bart Van Assche
cc48d8ac94
Reduced stack usage of srpt_process_completion.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2336 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-02 15:08:45 +00:00
Bart Van Assche
5c955fad01
Changes:
...
- Removed a superfluous state transition in srpt_abort_scst_cmd() and
cleaned up the source code of this function a bit.
- Implemented a workaround for the InfiniBand kernel stack bug that could
result in IB_WC_RECV error completions to be delivered with an incorrect
wr_id.
- RDMA read error completions and SRP_CRED_REQ send error completions are now
processed correctly.
- If posting an SRP_RSP fails, don't set the delivery status because sending
the response will be retried anyway.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2335 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-02 15:08:18 +00:00