From 5d2da8b29744ab233e0d216a28cbc1f2a38fd509 Mon Sep 17 00:00:00 2001 From: Joe Eykholt Date: Thu, 25 Feb 2010 18:23:23 +0000 Subject: [PATCH] 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 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1522 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- fcst/fcst.h | 2 ++ fcst/ft_scst.c | 1 + 2 files changed, 3 insertions(+) diff --git a/fcst/fcst.h b/fcst/fcst.h index e80b628b1..4f993eb9d 100644 --- a/fcst/fcst.h +++ b/fcst/fcst.h @@ -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. */ diff --git a/fcst/ft_scst.c b/fcst/ft_scst.c index f02925b99..7ae61957b 100644 --- a/fcst/ft_scst.c +++ b/fcst/ft_scst.c @@ -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, };