summaryrefslogtreecommitdiffstats
path: root/sys/scsi/st.c
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1994-03-23 09:16:04 +0000
committerdg <dg@FreeBSD.org>1994-03-23 09:16:04 +0000
commit0b07523c75c58c331e7f4c9f19e966a87359cb3e (patch)
tree00aadaf036a3e606544db696040d27050b5d9283 /sys/scsi/st.c
parentbe89471c9d6a4de60171c625d1b0ab147abb0770 (diff)
downloadFreeBSD-src-0b07523c75c58c331e7f4c9f19e966a87359cb3e.zip
FreeBSD-src-0b07523c75c58c331e7f4c9f19e966a87359cb3e.tar.gz
Bounce buffers. From John Dyson with help from me.
Diffstat (limited to 'sys/scsi/st.c')
-rw-r--r--sys/scsi/st.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/scsi/st.c b/sys/scsi/st.c
index 871614d..b72cb76 100644
--- a/sys/scsi/st.c
+++ b/sys/scsi/st.c
@@ -21,13 +21,13 @@
* 16 Feb 93 Julian Elischer ADDED for SCSI system
* 1.15 is the last version to support MACH and OSF/1
*/
-/* $Revision: 1.14 $ */
+/* $Revision: 1.15 $ */
/*
* Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992
* major changes by Julian Elischer (julian@jules.dialix.oz.au) May 1993
*
- * $Id: st.c,v 1.14 1993/12/19 00:54:59 wollman Exp $
+ * $Id: st.c,v 1.15 1994/01/29 10:30:41 rgrimes Exp $
*/
/*
@@ -911,6 +911,14 @@ ststrategy(bp)
stminphys(bp);
opri = splbio();
+ /*
+ * Use a bounce buffer if necessary
+ */
+#ifndef NOBOUNCE
+ if (st->sc_link->flags & SDEV_BOUNCE)
+ vm_bounce_alloc(bp);
+#endif
+
/*
* Place it in the queue of activities for this tape
* at the end (a bit silly because we only have on user..
OpenPOWER on IntegriCloud