Commit Graph

3721 Commits

Author SHA1 Message Date
Bart Van Assche
e41c3bf328 fcst: Fix a lockdep warning
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4960 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-13 18:37:23 +00:00
Bart Van Assche
cf8d18cba8 fcst: Remove ft_prlo() function header and a comment
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4959 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-13 18:37:00 +00:00
Bart Van Assche
049aab6dce fcst: Update a debug statement in ft_prli()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4958 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-13 18:36:32 +00:00
Bart Van Assche
62059912bf fcst: Remove two comments from ft_prli_locked()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4957 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-13 18:36:08 +00:00
Bart Van Assche
50c4c8ded9 fcst: Remove superfluous initialization from ft_sess_get()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4956 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-13 18:35:45 +00:00
Bart Van Assche
5fd500a4e9 fcst: Include version number in module description
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4955 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-13 18:35:09 +00:00
Bart Van Assche
812c33d403 fcst: Update ft_send_resp_code() function header
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4954 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-13 18:34:43 +00:00
Bart Van Assche
54b4717ffa fcst: Inline ft_send_xfer_rdy_off()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4953 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-13 18:34:19 +00:00
Bart Van Assche
c555196073 fcst: Update ft_send_response() comment header
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4952 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-13 18:33:51 +00:00
Bart Van Assche
c2cbc9fec7 fcst: Move a member variable in struct ft_sess
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4951 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-13 18:33:18 +00:00
Bart Van Assche
a578373d4e fcst: Add more debugging code in ft_sess_put()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4950 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-13 18:32:41 +00:00
Vladislav Bolkhovitin
ce2d1a93a4 Cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4949 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-13 01:43:04 +00:00
Bart Van Assche
af34653b31 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4948 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-12 18:24:00 +00:00
Vladislav Bolkhovitin
efd6a88bba Cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4947 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-10 04:17:25 +00:00
Vladislav Bolkhovitin
f0edde2465 Emulex web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4946 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-10 04:08:10 +00:00
Vladislav Bolkhovitin
f438811634 Cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4945 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-10 02:29:30 +00:00
Bart Van Assche
b103dd9949 qla2x00t: Fix q2t_close_session()
The "force_close" sysfs attribute remains to exist for some time
after q2t_close_session() finished. Avoid that q2t_close_session()
invokes q2t_sess_put() more than once by removing a session from
the session list before returning. Avoid that that disabling a
target after q2t_close_session() has been invoked triggers a call
of q2t_sess_put(). Avoid that triggering the "force_close" sysfs
attribute after a target has been disabled triggers an additional
call of q2t_sess_put().


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4944 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-09 16:19:56 +00:00
Vladislav Bolkhovitin
6de8805015 Updates for target drivers supporting both physical and virtual targets
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4943 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-06 22:20:49 +00:00
Bart Van Assche
f94393b43c scstadmin: Enable targets after the ALUA configuration has been restored
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4942 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-04 18:16:51 +00:00
Bart Van Assche
2c67878832 scstadmin: Add ALUA attribute support
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4941 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-04 18:15:28 +00:00
Bart Van Assche
e0dccf4f90 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4937 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-04 17:34:35 +00:00
Bart Van Assche
ae088692a4 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4936 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-03 19:25:06 +00:00
Bart Van Assche
8a1dad384f scripts/generate-kernel-patch: Follow-up for r4932
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4935 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-03 19:19:08 +00:00
Bart Van Assche
08afc26627 fcst: Do not define kref_get_unless_zero() if backported through stable tree
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4934 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-03 18:06:32 +00:00
Bart Van Assche
69b6db5f43 scripts/specialize-patch: Add support for shift operator in preprocessor expressions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4933 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-03 18:05:18 +00:00
Bart Van Assche
ce636f3fc7 scripts/generate-kernel-patch: Pass full kernel version to scripts/specialize-patch
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4932 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-03 18:03:55 +00:00
Bart Van Assche
1b94eecde7 fcst: Revert r4889 because it was wrong
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4931 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-03 15:14:19 +00:00
Vladislav Bolkhovitin
4347530168 Cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4930 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-03 01:26:32 +00:00
Vladislav Bolkhovitin
24262cfcd1 Revert r4922, because it isn't fully correct
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4929 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-02 07:01:33 +00:00
Bart Van Assche
5d6b0142a8 scstadmin: Fix parsing names of multi-valued attributes
When defining e.g. more than ten CHAP users in scst.conf, scstadmin
only saves the first then CHAP users. Make sure that scstadmin saves
all information defined in sysfs.

Reported-by: Artur Piechocki <artur.piechocki@open-e.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4928 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-07-30 10:49:02 +00:00
Bart Van Assche
dfe644834c scstadmin: Save multi-valued attributes sorted
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4927 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-07-30 10:41:15 +00:00
Bart Van Assche
75f9be4b34 iscsi-scst: Spelling fix - change dublicate into duplicate
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4926 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-07-29 10:43:00 +00:00
Bart Van Assche
8b0230b152 ib_srpt: Introduce srpt_init_tgt()
This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4925 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-07-29 07:08:14 +00:00
Bart Van Assche
bcfec543b9 nightly build: Add kernel 3.10
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4924 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-07-27 08:17:40 +00:00
Vladislav Bolkhovitin
e90730014c Cleanup: cdb_len was just checked a couple of lines above
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4923 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-07-27 01:12:22 +00:00
Vladislav Bolkhovitin
7a1bb6544c Fix out of SN commands handling
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4922 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-07-27 01:11:10 +00:00
Vladislav Bolkhovitin
2e9540c902 Update for kernel 3.10
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4921 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-07-25 23:38:31 +00:00
Vladislav Bolkhovitin
5b1ee63f2f Make ALUA commands filtering more CPU cache friendly
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4920 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-07-23 02:22:01 +00:00
Bart Van Assche
89e96c6495 nightly build: Add kernel 3.10 support infrastructure
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4919 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-07-22 18:35:37 +00:00
Bart Van Assche
ceb7cc7d21 scst_lib: Fix a checkpatch complaint
Avoid that the checkpatch tool included in kernel 3.10 reports the following:

WARNING: space prohibited between function name and open parenthesis '('


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4918 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-07-22 18:32:48 +00:00
Bart Van Assche
04b088b6c2 scst_sysfs: Fix a checkpatch complaint
Avoid that the checkpatch script included in kernel 3.10 reports the following:

WARNING: space prohibited before semicolon


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4917 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-07-22 18:31:51 +00:00
Bart Van Assche
255e3c3901 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4916 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-07-22 18:29:21 +00:00
Bart Van Assche
339aa1b90d ib_srpt/README: Update initiator-side performance notes section
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4915 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-07-11 11:41:06 +00:00
Vladislav Bolkhovitin
605c3c90e9 Simplify and optimize commands serialization/blocking
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4914 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-07-09 21:32:07 +00:00
Vladislav Bolkhovitin
48fe99f3c0 Logging cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4913 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-07-06 00:45:05 +00:00
Vladislav Bolkhovitin
0043f510cb block shift cleanups and fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4912 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-07-04 04:26:21 +00:00
Vladislav Bolkhovitin
6e31fd8306 Relax and cleanup HARDWARE ERROR sense usage
HARDWARE ERROR sense is very strong considered be "internal failure", so
might lead to serios initiator side issues up to disconnect from device. In
many cases WRITE or READ ERROR sense can be used instead. All remaining
usages must be logged.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4911 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-07-04 02:46:49 +00:00
Vladislav Bolkhovitin
2755c02421 scst: Introduce for_each_sg() in scst_adjust_sg()
Make scst_adjust_sg() slightly easier to read by using for_each_sg()
to iterate over the elements of the scatter/gather-list.

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




git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4910 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-07-03 04:37:53 +00:00
Vladislav Bolkhovitin
cf43cffd81 scst_priv.h: Avoid that smatch complains about unreachable code
Move three lines of code such that these lines are only visible to
the compiler when these lines are relevant.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4909 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-07-02 06:13:23 +00:00
Vladislav Bolkhovitin
bc2b2b1a84 Small logging cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4908 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-07-02 06:09:57 +00:00