diff options
author | gibbs <gibbs@FreeBSD.org> | 1997-09-21 22:03:22 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 1997-09-21 22:03:22 +0000 |
commit | 045b17cf00de7ddf9b7ce771dbbfe3fd35b09eaa (patch) | |
tree | c0c9b581dca3fe18449ba54334cde3e4ee2f9e28 /sys/scsi/sctarg.c | |
parent | a415512fd4b3c95c87808401c97e649c8ac7f41e (diff) | |
download | FreeBSD-src-045b17cf00de7ddf9b7ce771dbbfe3fd35b09eaa.zip FreeBSD-src-045b17cf00de7ddf9b7ce771dbbfe3fd35b09eaa.tar.gz |
Convert to use the new bufq* functions for dealing with buffer
queues.
Diffstat (limited to 'sys/scsi/sctarg.c')
-rw-r--r-- | sys/scsi/sctarg.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/scsi/sctarg.c b/sys/scsi/sctarg.c index 99549be..1900b63 100644 --- a/sys/scsi/sctarg.c +++ b/sys/scsi/sctarg.c @@ -37,7 +37,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: sctarg.c,v 1.20 1997/03/23 06:33:51 bde Exp $ + * $Id: sctarg.c,v 1.21 1997/09/02 20:06:36 bde Exp $ */ #include "opt_bounce.h" @@ -187,10 +187,10 @@ sctargstart(unit, unused_flags) return; } - bp = sctarg->buf_queue.tqh_first; + bp = bufq_first(&sctarg->buf_queue); if (bp == NULL) return; - TAILQ_REMOVE(&sctarg->buf_queue, bp, b_act); + bufq_remove(&sctarg->buf_queue, bp); /* * Fill out the scsi command @@ -250,7 +250,7 @@ sctarg_strategy(struct buf *bp, struct scsi_link *sc_link) /* * Place it at the end of the queue of activities for this device. */ - TAILQ_INSERT_TAIL( &sctarg->buf_queue, bp, b_act); + bufq_insert_tail(&sctarg->buf_queue, bp); /* * Tell the device to get going on the transfer if it's |