diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2000-12-13 16:03:12 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2000-12-13 16:03:12 +0000 |
commit | 34665b11c8f4bd54f52b12e6e6a7ff2822da25aa (patch) | |
tree | 0794720519fd237d99c3bc837dbba734cb7e9a99 /sys/dev/ic/aac.c | |
parent | e092cf396887c8f66ec5060e3a99d72eed4da9f5 (diff) |
better new timeouts
Diffstat (limited to 'sys/dev/ic/aac.c')
-rw-r--r-- | sys/dev/ic/aac.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/ic/aac.c b/sys/dev/ic/aac.c index 641f75b68e4..91f4d7410fc 100644 --- a/sys/dev/ic/aac.c +++ b/sys/dev/ic/aac.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aac.c,v 1.2 2000/12/13 15:32:39 mickey Exp $ */ +/* $OpenBSD: aac.c,v 1.3 2000/12/13 16:03:11 mickey Exp $ */ /*- * Copyright (c) 2000 Michael Smith @@ -1482,15 +1482,18 @@ aac_start_ccbs(sc) if (aac_exec_ccb(ccb) == 0) { ccb->ac_flags |= AAC_ACF_WATCHDOG; + timeout_set(&ccb->ac_xs->stimeout, aac_watchdog, ccb); timeout_add(&xs->stimeout, (AAC_WATCH_TIMEOUT * hz) / 1000); break; } TAILQ_REMOVE(&sc->sc_ccbq, ccb, ac_chain); - if ((xs->flags & SCSI_POLL) == 0) + if ((xs->flags & SCSI_POLL) == 0) { + timeout_set(&ccb->ac_xs->stimeout, aac_timeout, ccb); timeout_add(&xs->stimeout, (ccb->ac_timeout * hz) / 1000); + } } } |