diff options
Diffstat (limited to 'sys/scsi/od.c')
-rw-r--r-- | sys/scsi/od.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/scsi/od.c b/sys/scsi/od.c index 7c983eb..2fa229c 100644 --- a/sys/scsi/od.c +++ b/sys/scsi/od.c @@ -28,7 +28,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $Id: od.c,v 1.30 1997/03/24 11:25:01 bde Exp $ + * $Id: od.c,v 1.31 1997/09/02 20:06:32 bde Exp $ */ /* @@ -209,7 +209,7 @@ odattach(struct scsi_link *sc_link) if (sc_link->opennings > ODOUTSTANDING) sc_link->opennings = ODOUTSTANDING; - TAILQ_INIT(&od->buf_queue); + bufq_init(&od->buf_queue); /* * Use the subdriver to request information regarding * the drive. We cannot use interrupts yet, so the @@ -520,7 +520,7 @@ od_strategy(struct buf *bp, struct scsi_link *sc_link) /* * Place it in the queue of disk activities for this disk */ - TAILQ_INSERT_TAIL(&od->buf_queue, bp, b_act); + bufq_insert_tail(&od->buf_queue, bp); /* * Tell the device to get going on the transfer if it's @@ -595,11 +595,11 @@ odstart(u_int32_t unit, u_int32_t flags) /* * See if there is a buf with work for us to do.. */ - bp = od->buf_queue.tqh_first; + bp = bufq_first(&od->buf_queue); if (bp == NULL) { /* yes, an assign */ return; } - TAILQ_REMOVE( &od->buf_queue, bp, b_act); + bufq_remove(&od->buf_queue, bp); /* * If the device has become invalid, abort all the |