From dufault@hda.com  Sun May  7 03:27:40 1995
Received: from hda.com (hda.com [199.232.40.182])
          by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id DAA14383
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 7 May 1995 03:27:39 -0700
Received: (dufault@localhost) by hda.com (8.6.9/8.3) id GAA17670; Sun, 7 May 1995 06:25:53 -0400
Message-Id: <199505071025.GAA17670@hda.com>
Date: Sun, 7 May 1995 06:25:53 -0400
From: Peter Dufault <dufault@hda.com>
Reply-To: dufault@hda.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: scsistrategy doesn't use bounce buffers
X-Send-Pr-Version: 3.2

>Number:         387
>Category:       kern
>Synopsis:       scsistrategy doesn't use bounce buffers
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May  7 03:30:01 1995
>Closed-Date:    Thu Feb 8 11:31:46 PST 1996
>Last-Modified:  Thu Feb  8 11:32:46 PST 1996
>Originator:     Peter &
>Release:        FreeBSD 2.1.0-Development i386
>Organization:
Peter Dufault               Real Time Machine Control and Simulation
HD Associates, Inc.         Voice: 508 433 6936
dufault@hda.com             Fax:   508 433 5267
>Environment:

	

>Description:

The scsistrategy function used by the user ioctl doesn't allocate bounce
buffers.  I don't understand what the BOUNCE code in
scsi_scsi_cmd is doing, so I'm not just going to add in a call
to vm_bounce_alloc until I have the time to look at it.

>How-To-Repeat:

	

>Fix:
Probably add

	/*      
	 * Use a bounce buffer if necessary
	 */      
#ifdef BOUNCE_BUFFERS
	if (sc_link->flags & SDEV_BOUNCE)
		vm_bounce_alloc(bp);
#endif

before scsi_scsi_cmd in scsi_ioctl.c
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pst 
State-Changed-When: Thu Feb 8 11:31:46 PST 1996 
State-Changed-Why:  
Fixed. 

>Unformatted:


