Commit Graph

1890 Commits

Author SHA1 Message Date
Richard Sharpe
3532bd33df Add support for make debug2release, release2debug debug2perf and perf2debug.
This now only needs to be switched on in the master makefile.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2055 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-04 19:14:29 +00:00
Vladislav Bolkhovitin
3c902f9a48 Fixes race between cancel_delayed_work_sync() and conn_nop_in_delayed_work_fn() restarting the work despite of the cancel. Reported by Phil White <phil@philwhite.org>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2054 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-04 17:35:45 +00:00
Vladislav Bolkhovitin
19a25e5825 Minor cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2053 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-04 17:26:17 +00:00
Vladislav Bolkhovitin
9963c18578 Fixes possible crashes on threads management. Issue with volatile bool noticed by Bart Van Assche <bvanassche@acm.org>, great thanks!
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2052 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-04 17:16:08 +00:00
Vladislav Bolkhovitin
0679e4e7a1 Get rid of the checkpatch warning about including <asm/uaccess.h>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2051 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-04 13:29:36 +00:00
Vladislav Bolkhovitin
4fb1e2527c Fix confusion between CONFIG_DEBUG_SG and CONFIG_SCST_DEBUG_TM noticed by Bart Van Assche <bvanassche@acm.org>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2050 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-04 13:27:04 +00:00
Vladislav Bolkhovitin
c0ab5d3b89 Make r2048 more nice.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2049 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-04 13:22:56 +00:00
Vladislav Bolkhovitin
38f2e60dfd Fix for an endianness warning reported by sparse
Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2048 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-04 11:55:43 +00:00
Bart Van Assche
0ff36ae2e2 Unbreak the nightly build after the procfs to sysfs switch.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2047 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-04 08:17:55 +00:00
Mark Buechler
7f5c6fe8c1 - Refuse to add an initiator to more than one group with -add_init.
- Error out if a given initiator is found in more than one group
  in running configuration. Using -force will override.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2046 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-03 22:06:36 +00:00
Mark Buechler
9be0886ade - When initiators are moving between groups, use moveInitiator() instead
of removeInitiator() and addInitiator().
- Check to make sure initiators don't belong to multiple groups.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2045 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-03 21:49:22 +00:00
Vladislav Bolkhovitin
8be87129c4 Fix possible crash in scst_sched_session_free() because sess got while it's being destroyed after its recf counter already reached 0. To pre
vent that it's better to take reference to sess_kobj instead.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2044 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-03 19:33:37 +00:00
Vladislav Bolkhovitin
4f31b6d1ff Minor web update
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2043 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-03 17:01:59 +00:00
Bart Van Assche
272adb5363 Fixes for recently introduced minor checkpatch and sparse complaints.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2042 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-03 16:53:31 +00:00
Vladislav Bolkhovitin
d36e8ba654 Make sysfs default
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2041 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-03 16:47:51 +00:00
Vladislav Bolkhovitin
376befe8c3 New conf file sample added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2040 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-03 16:43:17 +00:00
Vladislav Bolkhovitin
716107a964 Docs updates before making the sys interface default
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2039 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-03 16:38:19 +00:00
Vladislav Bolkhovitin
e1ec75f089 Add enabled_attr_not_needed removed by the previous patch
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2038 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-03 14:50:58 +00:00
Vladislav Bolkhovitin
4d2e6d4eff Web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2037 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-03 14:37:19 +00:00
Richard Sharpe
0c825d11b1 Avoid creating the second kmem_cache and allocating from it if we do not
actually need it. This should improve performance on those versions of Linux
that do not need this.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2036 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-03 04:10:41 +00:00
Mark Buechler
817007a747 - Forgot to commit these for the CREATE_ATTRIBUTES removal.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2035 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-02 17:39:38 +00:00
Mark Buechler
f891161def - Fixed clear_config not clearing driver dynamic attributes.
- Removed requirement on special CREATE_ATTRIBUTES.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2034 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-02 15:45:30 +00:00
Bart Van Assche
9af00ae4e0 Bug fix: command-line option -h was not recognized properly.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2033 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-01 12:21:33 +00:00
Bart Van Assche
a8f53776c9 Fixed a bug that was introduced on 2010-08-07 and that caused e-mail sending to fail: /usr/bin/getopt converts arguments that contain spaces into multiple arguments. Removed the getopt statement.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2032 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-01 12:21:06 +00:00
Mark Buechler
d91b690a39 - Add in host to output from -issue_lip.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2031 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-31 19:37:16 +00:00
Mark Buechler
4db6a80be7 - Add -issue_lip argument.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2030 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-31 19:35:54 +00:00
Mark Buechler
0f3f5f7bc4 - List dynamic attributes as well for -list_drv_attr and -list_tgt_attr.
- Finish out README.sysfs examples.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2029 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-31 18:49:18 +00:00
Mark Buechler
17d22f86d7 - Add new README.sysfs (unfinished)
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2028 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-31 17:28:49 +00:00
Mark Buechler
a8ba8fd9e7 - List create attributes in -list_hnd_attr, -list_tgt_attr and -list_grp_attr.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2027 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-31 17:27:21 +00:00
Bart Van Assche
edac418f66 SRP_CRED_REQ autodetection is now disabled by default.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2026 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-31 06:30:59 +00:00
Bart Van Assche
798dc8a128 Updated kernel versions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2025 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-31 06:17:42 +00:00
Vladislav Bolkhovitin
95f713444e Some scst_local cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2024 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-30 20:58:20 +00:00
Vladislav Bolkhovitin
3c434ad40e Alignment cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2023 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-30 20:37:45 +00:00
Vladislav Bolkhovitin
3120885a46 - Eliminate theorethically possible race leading to sending wrong max_sn to initiators
- Alignment cleanups



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2022 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-30 20:34:17 +00:00
Vladislav Bolkhovitin
94d701bdfa Let's do it in a more safe way
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2021 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-30 12:06:54 +00:00
Vladislav Bolkhovitin
83945bde9c Fixes crash with certain topology setups. Reported and tested by Timm Essigke <Timm.Essigke@uni-bayreuth.de>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2020 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-30 10:30:17 +00:00
Vladislav Bolkhovitin
7f042fc37b Missed chuncks for 2.6.35 update
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2019 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-28 16:07:11 +00:00
Vladislav Bolkhovitin
72e7beb3f2 Cleanup of DOS EOLs
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2018 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-28 12:40:17 +00:00
Vladislav Bolkhovitin
2a973f0df5 Fixes recently reported problems:
- Possible crash on errors recovery in user space devices registration
 - Wrong handling of virtual devices with names looking similar to names of pass-through devices
 - Fix possible crash in scst_del_threads()

+ some other fixes and cleanups



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2017 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-28 12:38:52 +00:00
Bart Van Assche
725e090a94 Print an informational message instead of an error message for MRA (Message
Receipt Acknowledgement) messages.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2016 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-28 07:12:26 +00:00
Vladislav Bolkhovitin
023b65bafb Minor fixes and improvements
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2015 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-27 12:36:10 +00:00
Mark Buechler
164d28ce66 - An even better fix for the previous create attribute bug.
- Consider create attributes for LUNs within groups as well.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2014 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-26 22:52:04 +00:00
Mark Buechler
3f26d8f75c - Better fix for no create attributes takes into consideration other attributes.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2013 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-26 22:31:35 +00:00
Mark Buechler
5b88e3ee1a - Reorder/reword some of the help message.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2012 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-26 22:09:21 +00:00
Mark Buechler
edf378a1e2 - Fix setting device attributes which have no special create attributes.
- Don't warn on device attributes already set of not done with -set_dev_attr.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2011 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-26 22:05:53 +00:00
Vladislav Bolkhovitin
9a1870d7df Latency statistics sysfs output added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2010 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-26 18:18:10 +00:00
Mark Buechler
020072cb5b - Fix some argument parsing.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2009 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-26 15:30:37 +00:00
Vladislav Bolkhovitin
c430798dbe Web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2008 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-26 13:32:45 +00:00
Mark Buechler
fe447b1c3e - Capture SIGTERM as well as SIGHUP.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2007 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-25 20:29:38 +00:00
Mark Buechler
ae4833b40b - MAX_LUNS is no longer used.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2006 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-25 20:25:09 +00:00