diff options
author | 2007-11-05 00:21:36 +0000 | |
---|---|---|
committer | 2007-11-05 00:21:36 +0000 | |
commit | d091b2795a5cb6b39ad8c7b34a4672bfe6cd45dd (patch) | |
tree | c14d5bdee1c50becc8316021f2d8e0f25b98821d /sys/dev/ic/osiop.c | |
parent | audio encoding conversion cleanup (diff) | |
download | wireguard-openbsd-d091b2795a5cb6b39ad8c7b34a4672bfe6cd45dd.tar.xz wireguard-openbsd-d091b2795a5cb6b39ad8c7b34a4672bfe6cd45dd.zip |
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 |