diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-11-05 00:21:37 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-11-05 00:21:37 +0000 |
commit | 21812af4b3496b6b0be4dce431f68366f37efffd (patch) | |
tree | 7a0428600ca8ba89d83136158b2de43880e47d55 /sys/dev/ic/osiop.c | |
parent | 807508d2835434424b1a9b4ff449247de67abb5e (diff) |
Take a bit more care to ensure that SCSI_POLL commands always return
COMPLETE and never SUCCESSFULLY_QUEUED.
Diffstat (limited to 'sys/dev/ic/osiop.c')
-rw-r--r-- | sys/dev/ic/osiop.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ic/osiop.c b/sys/dev/ic/osiop.c index a32e69479c1..9bc8c2a259f 100644 --- a/sys/dev/ic/osiop.c +++ b/sys/dev/ic/osiop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: osiop.c,v 1.30 2007/10/01 04:03:51 krw Exp $ */ +/* $OpenBSD: osiop.c,v 1.31 2007/11/05 00:21:36 krw Exp $ */ /* $NetBSD: osiop.c,v 1.9 2002/04/05 18:27:54 bouyer Exp $ */ /* @@ -458,10 +458,10 @@ osiop_scsicmd(xs) /* start expire timer */ timeout_add(&xs->stimeout, (xs->timeout/1000) * hz); - if ((xs->flags & ITSDONE) == 0) - return (SUCCESSFULLY_QUEUED); - else + if (xs->flags & (SCSI_POLL | ITSDONE)) return (COMPLETE); + else + return (SUCCESSFULLY_QUEUED); } void |