From 40ab35ce0498d63cc702718e4ce9037f80444494 Mon Sep 17 00:00:00 2001 From: John Dyson Date: Tue, 9 May 1995 02:38:15 +0000 Subject: [PATCH] Added bounce support for user scsi requests. Reviewed by: David Greenman --- sys/scsi/scsi_ioctl.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys/scsi/scsi_ioctl.c b/sys/scsi/scsi_ioctl.c index 06d89ccf2160..6e4d6cb3c7d4 100644 --- a/sys/scsi/scsi_ioctl.c +++ b/sys/scsi/scsi_ioctl.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. *End copyright * - * $Id: scsi_ioctl.c,v 1.13 1995/04/14 15:10:35 dufault Exp $ + * $Id: scsi_ioctl.c,v 1.14 1995/05/03 18:09:12 dufault Exp $ * * */ @@ -204,6 +204,12 @@ void scsistrategy(struct buf *bp) if (screq->flags & SCCMD_ESCAPE) flags |= SCSI_ESCAPE; + +#ifdef BOUNCE_BUFFERS + if (sc_link->flags & SDEV_BOUNCE) + vm_bounce_alloc(bp); +#endif + err = scsi_scsi_cmd(sc_link, (struct scsi_generic *)screq->cmd, screq->cmdlen,