summaryrefslogtreecommitdiffstats
path: root/sys/cam/scsi
diff options
context:
space:
mode:
authorken <ken@FreeBSD.org>2013-08-29 21:25:27 +0000
committerken <ken@FreeBSD.org>2013-08-29 21:25:27 +0000
commit5a498aa69f24778cb7ca5c6f3808c104cef72f74 (patch)
tree9c304726f9aa7f70236f981c3bf77429f16f8c86 /sys/cam/scsi
parent5fe5bcbff42dd16d0838c2b23b452c9faeefcbda (diff)
downloadFreeBSD-src-5a498aa69f24778cb7ca5c6f3808c104cef72f74.zip
FreeBSD-src-5a498aa69f24778cb7ca5c6f3808c104cef72f74.tar.gz
Bump up the default timeouts for move commands in the ch(4) driver
to 15 minutes, and 5 minutes for things like READ ELEMENT STATUS. This is needed to account for the worst case scenarios on at least some Spectra Logic tape libraries. Sponsored by: Spectra Logic MFC after: 3 days
Diffstat (limited to 'sys/cam/scsi')
-rw-r--r--sys/cam/scsi/scsi_ch.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/cam/scsi/scsi_ch.c b/sys/cam/scsi/scsi_ch.c
index 2aad04c..fdfb97f 100644
--- a/sys/cam/scsi/scsi_ch.c
+++ b/sys/cam/scsi/scsi_ch.c
@@ -99,10 +99,10 @@ __FBSDID("$FreeBSD$");
*/
static const u_int32_t CH_TIMEOUT_MODE_SENSE = 6000;
-static const u_int32_t CH_TIMEOUT_MOVE_MEDIUM = 100000;
-static const u_int32_t CH_TIMEOUT_EXCHANGE_MEDIUM = 100000;
-static const u_int32_t CH_TIMEOUT_POSITION_TO_ELEMENT = 100000;
-static const u_int32_t CH_TIMEOUT_READ_ELEMENT_STATUS = 60000;
+static const u_int32_t CH_TIMEOUT_MOVE_MEDIUM = 15 * 60 * 1000;
+static const u_int32_t CH_TIMEOUT_EXCHANGE_MEDIUM = 15 * 60 * 1000;
+static const u_int32_t CH_TIMEOUT_POSITION_TO_ELEMENT = 15 * 60 * 1000;
+static const u_int32_t CH_TIMEOUT_READ_ELEMENT_STATUS = 5 * 60 * 1000;
static const u_int32_t CH_TIMEOUT_SEND_VOLTAG = 10000;
static const u_int32_t CH_TIMEOUT_INITIALIZE_ELEMENT_STATUS = 500000;
OpenPOWER on IntegriCloud