diff options
author | dyson <dyson@FreeBSD.org> | 1995-05-09 02:38:15 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1995-05-09 02:38:15 +0000 |
commit | 46e02306e2db50fce7864cb9285582c4237d3931 (patch) | |
tree | 5d1c5ee61c509253568c5ac9d1974959c41c87d8 /sys/scsi | |
parent | 3035f0c20e323cd0bc9920a705023e51fe639d53 (diff) | |
download | FreeBSD-src-46e02306e2db50fce7864cb9285582c4237d3931.zip FreeBSD-src-46e02306e2db50fce7864cb9285582c4237d3931.tar.gz |
Added bounce support for user scsi requests.
Reviewed by: David Greenman
Diffstat (limited to 'sys/scsi')
-rw-r--r-- | sys/scsi/scsi_ioctl.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/scsi/scsi_ioctl.c b/sys/scsi/scsi_ioctl.c index 06d89cc..6e4d6cb 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, |