diff options
author | dg <dg@FreeBSD.org> | 1995-11-10 14:54:16 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-11-10 14:54:16 +0000 |
commit | 328c8a79cba8dda7813c4611612bd09cc454bcfe (patch) | |
tree | 548ccb44b4178f280b2d9e540cf489f1531c6d7b /sys/scsi/scsi_ioctl.c | |
parent | 68b2067f87933887d25b92f2c65fc15836d91e42 (diff) | |
download | FreeBSD-src-328c8a79cba8dda7813c4611612bd09cc454bcfe.zip FreeBSD-src-328c8a79cba8dda7813c4611612bd09cc454bcfe.tar.gz |
Set B_BUSY on the private buffer to avoid a panic in biodone when the
I/O completes. Bug apparantly seen when attempting to format SCSI disks.
Submitted by: Peter Dufault <dufault@hda.com>
Diffstat (limited to 'sys/scsi/scsi_ioctl.c')
-rw-r--r-- | sys/scsi/scsi_ioctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/scsi_ioctl.c b/sys/scsi/scsi_ioctl.c index 9471307..f977662 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.15 1995/05/09 02:38:15 dyson Exp $ + * $Id: scsi_ioctl.c,v 1.16 1995/05/30 08:13:42 rgrimes Exp $ * * */ @@ -320,7 +320,7 @@ struct proc *p, struct scsi_link *sc_link) /* if no data, no need to translate it.. */ bp->b_un.b_addr = 0; bp->b_dev = dev; - bp->b_flags = 0; + bp->b_flags = B_BUSY; scsistrategy(bp); ret = bp->b_error; |