diff --git a/sys/dev/scsipi/cd.c b/sys/dev/scsipi/cd.c index 08ee3872ae71..85da0256baf9 100644 --- a/sys/dev/scsipi/cd.c +++ b/sys/dev/scsipi/cd.c @@ -1,4 +1,4 @@ -/* $NetBSD: cd.c,v 1.92 1996/05/05 19:52:50 christos Exp $ */ +/* $NetBSD: cd.c,v 1.93 1996/08/13 08:31:31 explorer Exp $ */ /* * Copyright (c) 1994, 1995 Charles M. Hannum. All rights reserved. @@ -586,8 +586,10 @@ cdstart(v) if (scsi_scsi_cmd(sc_link, cmdp, cmdlen, (u_char *) bp->b_data, bp->b_bcount, CDRETRIES, 30000, bp, SCSI_NOSLEEP | - ((bp->b_flags & B_READ) ? SCSI_DATA_IN : SCSI_DATA_OUT))) + ((bp->b_flags & B_READ) ? SCSI_DATA_IN : SCSI_DATA_OUT))) { + disk_unbusy(&cd->sc_dk, 0); printf("%s: not queued", cd->sc_dev.dv_xname); + } } } diff --git a/sys/scsi/cd.c b/sys/scsi/cd.c index 08ee3872ae71..85da0256baf9 100644 --- a/sys/scsi/cd.c +++ b/sys/scsi/cd.c @@ -1,4 +1,4 @@ -/* $NetBSD: cd.c,v 1.92 1996/05/05 19:52:50 christos Exp $ */ +/* $NetBSD: cd.c,v 1.93 1996/08/13 08:31:31 explorer Exp $ */ /* * Copyright (c) 1994, 1995 Charles M. Hannum. All rights reserved. @@ -586,8 +586,10 @@ cdstart(v) if (scsi_scsi_cmd(sc_link, cmdp, cmdlen, (u_char *) bp->b_data, bp->b_bcount, CDRETRIES, 30000, bp, SCSI_NOSLEEP | - ((bp->b_flags & B_READ) ? SCSI_DATA_IN : SCSI_DATA_OUT))) + ((bp->b_flags & B_READ) ? SCSI_DATA_IN : SCSI_DATA_OUT))) { + disk_unbusy(&cd->sc_dk, 0); printf("%s: not queued", cd->sc_dev.dv_xname); + } } }