From 34529b444bcfe26a90808de1b29813256c76df13 Mon Sep 17 00:00:00 2001 From: thorpej Date: Thu, 30 Jul 1998 23:57:07 +0000 Subject: [PATCH] From cd.c: call disk_unbusy() if we are unable to enqueue our command. --- sys/dev/scsipi/sd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/scsipi/sd.c b/sys/dev/scsipi/sd.c index 14113f44e4aa..93354f132b05 100644 --- a/sys/dev/scsipi/sd.c +++ b/sys/dev/scsipi/sd.c @@ -1,4 +1,4 @@ -/* $NetBSD: sd.c,v 1.128 1998/07/30 00:49:21 mjacob Exp $ */ +/* $NetBSD: sd.c,v 1.129 1998/07/30 23:57:07 thorpej Exp $ */ /* * Copyright (c) 1994, 1995, 1997 Charles M. Hannum. All rights reserved. @@ -619,9 +619,11 @@ sdstart(v) (u_char *)bp->b_data, bp->b_bcount, SDRETRIES, 60000, bp, SCSI_NOSLEEP | ((bp->b_flags & B_READ) ? SCSI_DATA_IN : SCSI_DATA_OUT)); - if (error) + if (error) { + disk_unbusy(&sc->sc_dk, 0); printf("%s: not queued, error %d\n", sd->sc_dev.dv_xname, error); + } } }