fcst: set max_hw_pending_time

The target template max_hw_pending_time was zero, causing
premature timeouts and a fast retry in scst_hw_pending_work_fn().
    
Set it to 20 seconds, like qla2x00t does, for now.
It could be the wrong thing for tape, but should be
plenty long enough for disks.
    
Signed-off-by: Joe Eykholt <jeykholt@cisco.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1522 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Joe Eykholt
2010-02-25 18:23:23 +00:00
parent 0c0a734968
commit 5d2da8b297
2 changed files with 3 additions and 0 deletions

View File

@@ -24,6 +24,8 @@
#define FT_VERSION "0.3"
#define FT_MODULE "fcst"
#define FT_MAX_HW_PENDING_TIME 20 /* max I/O time in seconds */
/*
* Debug options.
*/

View File

@@ -61,6 +61,7 @@ struct scst_tgt_template ft_scst_template = {
.report_aen = ft_report_aen,
.enable_target = ft_tgt_enable,
.is_target_enabled = ft_tgt_enabled,
.max_hw_pending_time = FT_MAX_HW_PENDING_TIME,
.name = FT_MODULE,
};