Commit Graph

1783 Commits

Author SHA1 Message Date
Vladislav Bolkhovitin
7eddeb82ab - Some iSCSI performance fixes
- __attribute__((aligned(sizeof(long))) added to all field with different protection than the previous field to make sure they don't share the same bus line. Just in case, actually, compiler should do the alignment by default.

 - Small docs updates.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1948 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-13 18:12:45 +00:00
Richard Sharpe
c06fb90d75 Process AEN requests. We queue them to a work function. This works, however,
there seems to be a problem with the Linux SCSI stack because when we delete a
LUN on the target, it does not get deleted from Linux. Still investigating.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1947 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-13 04:28:25 +00:00
Bart Van Assche
0b1b395b11 Updated kernel versions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1946 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-11 09:22:24 +00:00
Bart Van Assche
2afc2cc6cf Removed trailing whitespace.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1945 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-09 17:55:10 +00:00
Richard Sharpe
f9eda93575 More correctly handle residuals according to the guidelines.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1944 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-09 14:48:20 +00:00
Vladislav Bolkhovitin
c45aa9a60f 1. Fix for a possible hang on threading model changing
2. Performance improvement on rotating storage



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1943 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-09 10:28:52 +00:00
Bart Van Assche
3f2e2bf09c Added command-line option -r, which allows to specify an alternative recipient e-mail address. Convenient for having output of testruns sent to an alternative e-mail address.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1942 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-07 11:06:22 +00:00
Bart Van Assche
a31eb3885b Disabled checkpatch run for kernels 2.6.33 and 2.6.34.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1941 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-07 07:58:23 +00:00
Bart Van Assche
f56dbca167 Added kernel version 2.6.35.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1940 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-07 07:57:47 +00:00
Bart Van Assche
ed195d5e4f Added more comments.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1939 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-06 17:28:04 +00:00
Bart Van Assche
94cf387057 Removed trailing whitespace.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1938 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-06 07:05:36 +00:00
Vladislav Bolkhovitin
a93457e2cf Let's proceed as implicit HQ only SIMPLE commands.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1937 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-05 19:41:52 +00:00
Richard Sharpe
825be22f79 Improve a debugging statement so that it shows the SAS address allocated.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1936 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-05 13:57:32 +00:00
Bart Van Assche
2fd1a2ea1f Don't complain when the fcst patch series file is missing.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1935 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-05 07:55:26 +00:00
Richard Sharpe
b0a7281646 Remove a bunch of unneeded printk lines. Also, this line:
TRACE_DBG("Created tid '%08lX'", (unsigned long)&tr_id[4]);

is wrong. All it will do is print the address of the fifth byte in the tr_id.

It should cast to an unsigned long * and deref it, at least. However, I have
anothe change that prints out the tr_id as a SAS address.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1934 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-04 14:22:54 +00:00
Vladislav Bolkhovitin
df49194694 Patch from Joe Eykholt <jeykholt@cisco.com> fixing minor issue with 2.6.35
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1933 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-04 13:32:43 +00:00
Vladislav Bolkhovitin
c70529a807 Fix minor compiler warning
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1932 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-04 13:30:45 +00:00
Bart Van Assche
9cdef50326 Made sure that the 2.6.35 kernel patches apply cleanly.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1931 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-04 09:55:10 +00:00
Bart Van Assche
3d65fe38ee Fixed checkpatch complaints about trailing whitespace.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1930 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-04 09:54:24 +00:00
Bart Van Assche
a24bd6962a Exclude fcst from the sparse test build if the fcst patch series file is missing.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1929 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-04 07:43:57 +00:00
Richard Sharpe
359cdf786a Include support for PR in scst_local.c. We return a SAS-style Protocol ID. I
use an OUI that I think is not currently in use, so it seems unlikely that we
will clash with anyone else, but you never know. I might have to change it
later. 


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1928 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-04 04:03:44 +00:00
Mark Buechler
7b836c12aa - Add a couple more options to the help screen
which will be implemented in the coming days.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1927 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-03 20:24:48 +00:00
Vladislav Bolkhovitin
19b3a787ac Add missed comma
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1926 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-03 19:19:39 +00:00
Mark Buechler
13323936b4 - Better list trace levels.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1925 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-03 18:50:36 +00:00
Mark Buechler
819e3ea27e - Fix a bunch of set attribute functions as well as special handling for trace_level.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1924 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-03 18:46:37 +00:00
Joe Eykholt
05bf0954aa Remove debug print of two obsolete fields.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1923 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-03 18:05:29 +00:00
Joe Eykholt
5d84242673 Add patch series for 2.6.35.
The individual patches are a subset of the earlier ones, with
only line number changes to apply cleanly.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1922 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-03 18:04:36 +00:00
Mark Buechler
90357a4cb7 - Finish up list functions, except for list_sessions.
- Allow '0' named driver, target, groups, luns and attributes.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1921 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-03 17:39:05 +00:00
Vladislav Bolkhovitin
556839b817 Document BLOCKIO regression on kernels 2.6.32+
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1920 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-03 16:59:37 +00:00
Mark Buechler
f734133e4a - Small fix to list_group.
- Fix -list-scst-attr.
- Fix -list_dev_attr.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1919 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-03 16:38:49 +00:00
Mark Buechler
ebeeebf2d2 - Fix list_group.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1918 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-03 16:15:50 +00:00
Bart Van Assche
078841cbf4 Removed again -- doesn't build.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1917 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-03 15:38:57 +00:00
Bart Van Assche
7b839ceaf7 Added to repository.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1916 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-03 15:33:45 +00:00
Bart Van Assche
a6b0c914b8 Pick the proper fcst patch series file.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1915 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-03 15:32:42 +00:00
Mark Buechler
f5d4013804 - Fix list_target.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1914 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-03 15:08:15 +00:00
Mark Buechler
27a5feb7e9 - Fix list_driver.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1913 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-03 15:03:37 +00:00
Mark Buechler
c77d7d62cc - Fix list_handler and build-out list_device.
- Small fix to checkConfiguration().



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1912 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-03 14:59:37 +00:00
Mark Buechler
4c7079dd3c - Enhance checkConfiguration() a bit.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1911 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-03 13:44:49 +00:00
Bart Van Assche
ed801d13c6 Updated kernel revisions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1910 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-03 13:41:54 +00:00
Bart Van Assche
a504344cee Bug fix: process undefined RHEL_MAJOR / RHEL_MINOR macros properly.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1909 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-02 18:25:47 +00:00
Vladislav Bolkhovitin
95000212ed Fixing handling of REQUEST SENSE and INQUIRY for target driver supplied buffers
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1908 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-02 17:59:09 +00:00
Vladislav Bolkhovitin
05d080488e Small improvements
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1907 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-02 17:58:03 +00:00
Vladislav Bolkhovitin
f28e08fd70 Small web update
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1906 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-02 17:54:19 +00:00
Bart Van Assche
23a55be361 Fixed a compiler warning that was only reported on RHEL 5.x.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1905 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-02 17:01:06 +00:00
Bart Van Assche
e30376945f Changes:
- Made sure that in mode thread=1 not only send completions but also receive completions are processed in thread context.
- Merged IB send and receive completion queues again such that both types of completions are processed in a fairly.

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1904 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-02 16:50:14 +00:00
Vladislav Bolkhovitin
0cb5524700 Web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1903 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-02 11:57:31 +00:00
Bart Van Assche
a851118fe6 Avoid that /sys/module/ib_srpt/parameters/srpt_service_guid contains a double newline.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1902 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-01 19:12:34 +00:00
Bart Van Assche
02d6dc9860 Functional changes:
- Changed default value for the kernel module parameter thread from 0 to 1 because mode 0 can trigger soft lockup complaints under sufficient load.
- Changed default value for the kernel module parameter srpt_autodetect_cred_req from false to true.
Non-functional changes:
- Removed several superfluous casts in ib_srpt.c.
Performance-related changes:
- Rearranged if/then/else statements such that the most frequently executed code occurs first.
- When SCST_MAX_TGT_DEV_COMMANDS > 128, the SRP receive queue size is now SCST_MAX_TGT_DEV_COMMANDS instead of 128.
Bug fixes:
- Fixed performance bug in modes thread=0 and 2.
- Fixed a bug in IB send queue overflow handling.
- Fixed race related to IB completion thread creation (mode thread=1).
- Made sure that the following warning is no longer triggered during module removal:
WARNING: at fs/proc/generic.c:825 remove_proc_entry+0x261/0x2f0()
Call Trace:
 [<ffffffff8104d74b>] warn_slowpath_common+0x7b/0xc0
 [<ffffffff8104d7f1>] warn_slowpath_fmt+0x41/0x50
 [<ffffffff8116e8a1>] remove_proc_entry+0x261/0x2f0
 [<ffffffff810832c8>] ? debug_check_no_locks_freed+0xc8/0x150
 [<ffffffff81082ecb>] ? mark_held_locks+0x6b/0xa0
 [<ffffffff8110f95f>] ? kfree+0xcf/0x180
 [<ffffffff810831a5>] ? trace_hardirqs_on_caller+0x145/0x190
 [<ffffffff810831fd>] ? trace_hardirqs_on+0xd/0x10
 [<ffffffffa05835c2>] srpt_unregister_procfs_entry+0x22/0x40 [ib_srpt]
 [<ffffffffa0583aba>] srpt_release+0x8a/0x1a0 [ib_srpt]
 [<ffffffffa04cbcc0>] scst_unregister_target+0x70/0x3f0 [scst]
 [<ffffffff811bf6d7>] ? kobject_put+0x27/0x60
 [<ffffffff8126ff67>] ? put_device+0x17/0x20
 [<ffffffffa058587e>] srpt_remove_one+0xee/0x1a0 [ib_srpt]
 [<ffffffffa03ddfc5>] ib_unregister_client+0x65/0x120 [ib_core]
 [<ffffffffa0588f43>] srpt_cleanup_module+0x5f/0xc3 [ib_srpt]
 [<ffffffff8108e8dd>] sys_delete_module+0x1bd/0x280
 [<ffffffff8135e5ad>] ? retint_swapgs+0xe/0x13
 [<ffffffff810831a5>] ? trace_hardirqs_on_caller+0x145/0x190
 [<ffffffff810030db>] system_call_fastpath+0x16/0x1b
---[ end trace 3fc26663490f6a89 ]---

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1901 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-01 14:40:54 +00:00
Bart Van Assche
1590390350 Reordered two fields in struct srpt_rdma_ch.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1900 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-01 12:47:00 +00:00
Bart Van Assche
d402b1e851 Command abortion bug fix.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1899 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-07-30 15:28:56 +00:00