summaryrefslogtreecommitdiff
path: root/sys/dev/ic/twe.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2007-10-20 16:10:10 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2007-10-20 16:10:10 +0000
commit8773a9b3d4717b24aa6d4d36537878310289d731 (patch)
treedacee5890b66ea46c09d542538cbe9203d711c2e /sys/dev/ic/twe.c
parente03f0259de8a5b418992f5b13249e15268bcdedd (diff)
Call scsi_done() at SPLBIO. 'looks olright' says mickey.
Diffstat (limited to 'sys/dev/ic/twe.c')
-rw-r--r--sys/dev/ic/twe.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/twe.c b/sys/dev/ic/twe.c
index b17721ef9a1..a6f8c79ae28 100644
--- a/sys/dev/ic/twe.c
+++ b/sys/dev/ic/twe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: twe.c,v 1.27 2006/12/29 13:04:37 pedro Exp $ */
+/* $OpenBSD: twe.c,v 1.28 2007/10/20 16:10:09 krw Exp $ */
/*
* Copyright (c) 2000-2002 Michael Shalayeff. All rights reserved.
@@ -922,13 +922,14 @@ twe_scsi_cmd(xs)
if ((error = twe_cmd(ccb, ((xs->flags & SCSI_NOSLEEP)?
BUS_DMA_NOWAIT : BUS_DMA_WAITOK), wait))) {
- TWE_UNLOCK(sc, lock);
TWE_DPRINTF(TWE_D_CMD, ("failed %p ", xs));
if (xs->flags & SCSI_POLL) {
+ TWE_UNLOCK(sc, lock);
return (TRY_AGAIN_LATER);
} else {
xs->error = XS_DRIVER_STUFFUP;
scsi_done(xs);
+ TWE_UNLOCK(sc, lock);
return (COMPLETE);
}
}