From cd.c: call disk_unbusy() if we are unable to enqueue our command.
This commit is contained in:
parent
0ffcc8e911
commit
34529b444b
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue