mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-23 13:41:27 +00:00
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:
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user