Commit Graph

279 Commits

Author SHA1 Message Date
Bart Van Assche
beeef55b6f Use __packed instead of __attribute__((packed)).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3500 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-01 10:40:07 +00:00
Bart Van Assche
375597fedf iSCSI-SCST: only define __packed for those kernels versions that do not have a definition for __packed.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3498 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-01 08:03:32 +00:00
Bart Van Assche
4839c8167f iscsi-scst: get rid of two "suspect code indent for conditional statements" checkpatch complaints.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3497 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-01 07:19:12 +00:00
Bart Van Assche
c37081aed5 Move spaces in long #warning/#error lines to the end of the previous line to shut up checkpatch.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3495 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-01 06:59:40 +00:00
Bart Van Assche
b901fe2958 iSCSI-SCST builds again on RHEL 5.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3488 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-28 10:37:46 +00:00
Vladislav Bolkhovitin
b5a41deb28 Update for 2.6.39
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3462 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-20 00:52:34 +00:00
Vladislav Bolkhovitin
c54ebba11a Some more TM cleanups/improvements
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3460 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-18 21:45:09 +00:00
Bart Van Assche
fc82862369 iscsi-scst: Fixed a compilation error that only occurred with GENERATING_UPSTREAM_PATCH defined.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3452 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-13 06:13:52 +00:00
Vladislav Bolkhovitin
5e7544e5a4 TM handling fixes, part2, hopefully, final.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3450 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-12 01:31:01 +00:00
Bart Van Assche
663d39f1ea iscsi-scst/kernel/iscsi.c: fix a checkpatch complaint about whitespace.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3447 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-11 11:00:01 +00:00
Vladislav Bolkhovitin
70eb596f60 Rework iSCSI aborts to make them more correct and remove recent workarounds (one more post-IET cleanup)
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3444 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-09 23:07:23 +00:00
Vladislav Bolkhovitin
f9cbfe51cd RHEL5/6 workaround
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3438 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-03 21:27:30 +00:00
Vladislav Bolkhovitin
8443ae6bc7 Don't abort not yet received commands
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3425 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-29 19:54:13 +00:00
Vladislav Bolkhovitin
c5b9c85591 - More timers improvements
- Cleanups



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3421 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-26 19:07:13 +00:00
Vladislav Bolkhovitin
08ab8e40be 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/trunk@3414 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-26 00:06:23 +00:00
Vladislav Bolkhovitin
3c59daab2a Correctly process being read cmd during abort
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3413 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-26 00:04:01 +00:00
Vladislav Bolkhovitin
64065a21e9 NOP-In/response timeouts improvements
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3411 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-25 23:50:49 +00:00
Bart Van Assche
d1acc24bed Suppress gcc 4.6 warnings about unused variables.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3350 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-03 14:34:48 +00:00
Vladislav Bolkhovitin
bfacd754f6 Fixes for make headers_check
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3330 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-01 18:15:29 +00:00
Vladislav Bolkhovitin
d77d19286f TRACE_OUT_OF_MEM cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3329 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-04-01 17:43:46 +00:00
Vladislav Bolkhovitin
4539005d7c Patch from Alexey Obitotskiy <alexeyo1@open-e.com> making get_initiator_port_transport_id() more flexible
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3322 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-03-29 14:30:01 +00:00
Vladislav Bolkhovitin
16f654b5ad Update for 2.6.38
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3294 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-03-21 14:10:50 +00:00
Bart Van Assche
ce918fa396 Spelling fix (in source code comments): reaquire -> reacquire.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3265 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-02-27 09:46:41 +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
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
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
3d707844b0 put_page_callback-2.6.37.patch: diff minimizing / added a missing file.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3029 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-12 12:22:10 +00:00
Bart Van Assche
d1f587ef29 Builds now on kernel 2.6.37 too.
(svn merge -c2972 https://scst.svn.sourceforge.net/svnroot/scst/branches/sysfs-tree-changes)


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3002 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-10 09:13:03 +00:00
Vladislav Bolkhovitin
52820b5d57 Cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2720 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-17 11:40:08 +00:00
Vladislav Bolkhovitin
a98808185f Ignore out of SN range commands as requested by iSCSI RFC.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2639 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-09 14:23:25 +00:00
Bart Van Assche
a5417c1641 Compilation: Disabled -Wextra on RHEL5 since it triggers too many uninteresting warnings on that platform.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2615 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-06 10:20:16 +00:00
Vladislav Bolkhovitin
a565f89eb4 Don't return SN errors on IMMEDIATE commands
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2575 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-02 20:05:54 +00:00
Bart Van Assche
0a742c594d Added missing cc-option definition.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2562 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-01 16:25:09 +00:00
Bart Van Assche
714a4da774 iscsi_scst builds again on RHEL (svn merge -c2559 https://scst.svn.sourceforge.net/svnroot/scst/branches/ibmvstgt-port).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2560 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-01 15:50:33 +00:00
Bart Van Assche
33d7605cfe Removed trailing whitespace.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2499 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-30 09:17:15 +00:00
Bart Van Assche
92a06f70bf The put_page_callback patch applies again on the 2.3.36 kernel.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2494 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-30 08:37:11 +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
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
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
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
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
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
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
Bart Van Assche
e44573aa6c Fixed a sparse warning by changing iscsi_main_thread_pool from a global
variable into a static variable.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2334 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-02 14:46:20 +00:00
Vladislav Bolkhovitin
866f85bd18 Minor threds naming improvement
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2326 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-01 13:41:23 +00:00
Vladislav Bolkhovitin
929b4db422 Slightly modified patch from Bart Van Assche <bvanassche@acm.org> fixing build breakage on not too recent kernels introduced by r2317
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2324 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-01 12:09:26 +00:00
Vladislav Bolkhovitin
ff2c24c1c3 Assigning CPU affinity to threads and connections
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2317 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-30 18:07:27 +00:00
Bart Van Assche
fc27d91219 Fixed a mismatch between a format string and its argument list (was reported by sparse).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2244 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-24 17:23:37 +00:00