Commit Graph

2035 Commits

Author SHA1 Message Date
Vladislav Bolkhovitin
d68f6300a2 Merge of the trunk's r3248:
Fix problem with handling internal commands reported by Hiroyuki Sato <hiroysato@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3249 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-02-13 17:02:54 +00:00
Vladislav Bolkhovitin
dd13cd04d6 Merge of the trunk's r3231 and r3232:
Docs update



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3233 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-27 23:21:21 +00:00
Vladislav Bolkhovitin
59e64ad3d5 Version updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3221 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-14 21:04:02 +00:00
Vladislav Bolkhovitin
6443337765 2.0.0.1 is ready for release
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3217 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-13 19:24:37 +00:00
Vladislav Bolkhovitin
7dba2398d2 Merge of the trunk's r3214-3215
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3216 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-13 19:15:50 +00:00
Vladislav Bolkhovitin
d906b4ab62 Partial merge of the trunk's r3203:
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/branches/2.0.0.x@3204 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-10 18:39:41 +00:00
Vladislav Bolkhovitin
455a696228 Merge of the trunk's r3200:
Copyrights updated



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3201 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-06 20:17:38 +00:00
Vladislav Bolkhovitin
1478738737 Fixed accidentally deleted line during r3163 merge
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3197 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-06 18:10:52 +00:00
Bart Van Assche
414221d1c8 Updated my e-mail address in copyright statements and README files (merged r3175 from the trunk).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3176 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-21 18:53:35 +00:00
Vladislav Bolkhovitin
5209a009a5 Version update to 2.0.0.1-rc1
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3171 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-21 14:53:41 +00:00
Vladislav Bolkhovitin
2b6f1bff04 scstadmin docs update to make them more up to date
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3168 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-21 13:14:12 +00:00
Vladislav Bolkhovitin
a8b2e8b69c README.sysfs renamed to README
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3167 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-21 13:01:40 +00:00
Vladislav Bolkhovitin
9c7d94c57a README renamed to README.procfs
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3166 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-21 13:00:52 +00:00
Vladislav Bolkhovitin
bed8b89090 Version set to 2.0.0
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3165 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-21 12:39:06 +00:00
Vladislav Bolkhovitin
527e53888b Merge of the trunk's r3163:
Since algorithm to autogenerate t10_dev_id and usn is going to be changed, make usn user configurable and during transition period both t10_dev_id and usn always key to make scstadmin to always save them.



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3164 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-21 12:37:17 +00:00
Vladislav Bolkhovitin
90fff1fba2 Merge of the trunk's r3160:
Fix lost line in iscsi_scst_itf_ver.h generation lead to incorrect generation of this file. Reported by torn5 <torn5@shiftmail.org>.



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3161 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-21 11:18:57 +00:00
Vladislav Bolkhovitin
3b23f6d223 Merge of the trunk's r3151 and 3152:
Cleanup: eliminate a superfluous cast and unnest an if-statement

and

I/O context creation and cleanup in SCST command-processing threads is
protected by io_context_mutex. The patch below changes that mutex from a
single mutex for all command threads to one mutex per thread pool.

+

Two quickly succeeding command thread management actions, e.g. setting both
threads_num and threads_pool_type via scst.conf, can trigger the bug mentioned
below. That bug can be triggered because kthread_stop() can stop a thread
before it has started. So it can happen that an I/O context is created inside
scst_cmd_thread() but not cleaned up because the thread for which
p_cmd_threads->nr_threads == 1would evaluate to true is never started. The
patch below fixes this by guaranteeing that if an I/O context has been created
for a thread pool that it gets cleaned up too.

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

with fixes/cleanups



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3153 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-20 19:15:44 +00:00
Bart Van Assche
8e32148fc1 ib_srpt: Fixed a bug in the RDMA channel disconnection processing code.
(Merged r3143 from the trunk.)


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3144 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-19 13:33:46 +00:00
Vladislav Bolkhovitin
3a01db3279 Merge of the trunk's r3131:
Making creation of default target and session by default



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3133 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-18 15:57:34 +00:00
Vladislav Bolkhovitin
efe33340f2 Merge of the trunk's r3121:
Fix minor issue when generating INQUIRY responses for not existing LUNs.



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3122 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-17 14:40:16 +00:00
Bart Van Assche
3ce2f9446c Corrected feedback e-mail address (merged r3112 and r3113 from the trunk).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3114 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-16 16:25:23 +00:00
Bart Van Assche
5c4c0defea Merged r3053 and r3096 from the trunk (iSCSI how-to updates).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3111 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-16 15:46:06 +00:00
Vladislav Bolkhovitin
07ab8e7e3f Merge of the trunk's r3094:
Fix wrong last_len computation reported by ido benda <idombd@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3095 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-15 16:47:08 +00:00
Bart Van Assche
53d401ac36 Don't read uninitialized variables (was introduced in r2868).
(Merged r3030 from the trunk.)


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3031 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-12 12:44:24 +00:00
Bart Van Assche
f903a7896e ib_srpt: Handle iWARP devices graciously.
(Merged r2950, 2951 and 2963 from the trunk.)


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2964 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-07 17:04:05 +00:00
Bart Van Assche
99e1368490 Fixed a bug that could cause scstadmin -write_config to generate an invalid
configuration file, e.g.
...
               GROUP a         }
...

Reported-by: Frank Zago <fzago@systemfabricworks.com>

(Merged r2952 from the trunk.)


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2953 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-07 09:38:23 +00:00
Bart Van Assche
e6fb3b2a1d scst/scst_vdisk: Made error handling in bi_end_io function IRQ-safe since
bi_end_io functions must be IRQ-safe.

A quote from a discussion between Alan Cox, Mikulas Patocka and Jens Axboe
(http://lkml.org/lkml/2008/7/2/69):

> >Right, that wont work of course. Completions are typically done through
> >a softirq, so it is not currently done with hard interrupts disabled.
>
> I thought, from hardirq - that's what IDE is doing. And they are called
> with interrupts disabled (maybe unless you specify unmaskirq, which is not
> default). What block driver does completions with softirq? ... and why?

The key word is 'typically', the old IDE driver really isn't used very
much. The SCSI layer and eg cciss uses the block layer softirq
completions, so that is what 99% of the uses will be.

The patch itself was provided by Arne Redlich.

(Merged r2913 from the trunk.)


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2915 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-03 11:44:38 +00:00
Bart Van Assche
55794571db ib_srpt: Pass correct atomic context information to scst_rx_cmd().
(Merged r2912 from the trunk.)


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2914 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-03 11:43:37 +00:00
Vladislav Bolkhovitin
ddc2387ec5 Merge of the trunk's r2860:
This patch fixes a class of race conditions in the ..._sysfs_del()
functions: the kobject_put() calls should come after all kobject_del() calls
because as long as the last kobject_del() call hasn't been invoked, a sysfs
.show() or .store() callback may still be in progress that needs one of
these kobjects.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2869 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-29 17:57:19 +00:00
Vladislav Bolkhovitin
ed2dc7bdaf Merge of the trunk's r2867:
Fix rarely possible race between scst_free_session() and scst_check_reassign_sess()



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2868 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-29 17:14:55 +00:00
Vladislav Bolkhovitin
c1f5c42fa4 Merge of the trunk's r2840:
Fix memory leak in __blk_rq_map_kern_sg() reported by "Hauser, Stefan" <stefan.hauser@bdt.de>



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2841 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-26 15:12:54 +00:00
Vladislav Bolkhovitin
5155b4561c Merge of the trunk's r2744:
Fix compilation if target mode support disabled



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2745 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-17 19:50:57 +00:00
Vladislav Bolkhovitin
53aeecee1b Merge of the trunk's r2725:
Max_sectors related error made more clear



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2726 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-17 12:51:32 +00:00
Bart Van Assche
018e5db220 ib_srpt: Made instructions in the documentation independent of the scstadmin version.
(Merged r2717 from the trunk.)


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2718 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-16 19:20:56 +00:00
Bart Van Assche
9d7859a04a ib_srpt: Made sure that accessing sysfs entries during target creation is harmle
ss.
(Merged r2703 from the trunk.)


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2714 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-16 11:33:37 +00:00
Mark Buechler
b4d9a93a0c Merge scstadmin from trunk.
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2699 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-14 03:05:48 +00:00
Bart Van Assche
d82145649d ib_srpt: Builds again on RHEL 5 (disable_proc; merged r2695 from the trunk).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2697 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-13 22:30:40 +00:00
Bart Van Assche
7ea0f52811 ib_srpt: Converted req_lim and req_lim_delta from device-specific attributes into session-specific attributes.
(Merged r2692 from the trunk.)


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2693 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-13 17:32:33 +00:00
Bart Van Assche
bab68da2dd iscsi-scst: Fixed a compiler warning in the user space code (merged r2107 from the trunk).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2690 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-13 15:49:29 +00:00
Bart Van Assche
ebd3b46c66 ib_srpt: Made sure that no credits are lost because of SCSI task abortion.
ib_srpt: Exported req_lim and req_lim_delta values via sysfs because this is convenient for debugging purposes.
(Merged revisions 2686 and 2688 from the trunk.)


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2689 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-13 15:11:11 +00:00
Vladislav Bolkhovitin
eed844a6c2 Merge of the trunk's r2673:
scst_alloc() didn't set len of the last sg entry as reported by ido benda <idombd@gmail.com> + set resid_possible for special cases of LUN NOT SUPPORTED



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2674 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-11 19:59:55 +00:00
Vladislav Bolkhovitin
ba6b1df220 Merge with the trunk's r2657:
in-tree-patches deleted as not needed



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2658 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-10 19:31:54 +00:00
Vladislav Bolkhovitin
53d113c04a Merge of the trunk's r2655:
Fix minor Makefile issues



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2656 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-10 12:38:00 +00:00
Vladislav Bolkhovitin
37f52e6418 Merge of the trunk's r2641:
Docs update



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2642 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-09 14:43:52 +00:00
Vladislav Bolkhovitin
670f9aab84 Merge of the trunk's r2639:
Ignore out of SN range commands as requested by iSCSI RFC.



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2640 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-09 14:30:44 +00:00
Vladislav Bolkhovitin
9beae31839 Merge of the trunk's r2635:
Fix problems in marking sessions local



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2636 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-08 14:25:58 +00:00
Vladislav Bolkhovitin
47a62c75f5 Merge of the trunk's r2608:
TM handling on 23xx- fixed



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2609 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-05 19:24:47 +00:00
Vladislav Bolkhovitin
80a0c4e095 Merge of the trunk's r2604:
Partially remove implicit ordered commands as a nonsense. It will be replaced by a common waiting facility to wait on depending previous commands to complete.



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2605 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-05 11:56:15 +00:00
Vladislav Bolkhovitin
22eb9372bd Merge of the trunk's r2597:
Logging cleanup



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2603 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-04 19:51:38 +00:00
Vladislav Bolkhovitin
c4ddff295a Merge of the trunk's r2595:
A bunch of pending qla2x00t fixes:

 - Make initiators discovery more robust

 - Fix mapped SG leaks

 - Docs update

 - Cleanups



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2602 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-04 19:47:56 +00:00