summaryrefslogtreecommitdiff
path: root/sys/scsi/sd.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-07 00:09:18 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-07 00:09:18 +0000
commit37f1a4a66aae72eec67ccfdac50c4aeb34027f8e (patch)
tree2b3183825b76175059b2c95f805aebb11cff37c8 /sys/scsi/sd.c
parent99940d023b67cb6d7b308c9d677ee6c1f92c5ceb (diff)
disk_unbusy if op failed to enqueue
Diffstat (limited to 'sys/scsi/sd.c')
-rw-r--r--sys/scsi/sd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c
index 287fdbde779..71361c38ed8 100644
--- a/sys/scsi/sd.c
+++ b/sys/scsi/sd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sd.c,v 1.17 1996/07/12 08:57:57 pefo Exp $ */
+/* $OpenBSD: sd.c,v 1.18 1996/08/07 00:09:17 deraadt Exp $ */
/* $NetBSD: sd.c,v 1.100.4.1 1996/06/04 23:14:08 thorpej Exp $ */
/*
@@ -601,9 +601,11 @@ sdstart(v)
(u_char *)bp->b_data, bp->b_bcount,
SDRETRIES, 10000, bp, SCSI_NOSLEEP |
((bp->b_flags & B_READ) ? SCSI_DATA_IN : SCSI_DATA_OUT));
- if (error)
+ if (error) {
+ disk_unbusy(&sd->sc_dk, 0);
printf("%s: not queued, error %d\n",
sd->sc_dev.dv_xname, error);
+ }
}
}