summaryrefslogtreecommitdiffstats
path: root/sys/scsi
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-11-10 14:54:16 +0000
committerdg <dg@FreeBSD.org>1995-11-10 14:54:16 +0000
commit328c8a79cba8dda7813c4611612bd09cc454bcfe (patch)
tree548ccb44b4178f280b2d9e540cf489f1531c6d7b /sys/scsi
parent68b2067f87933887d25b92f2c65fc15836d91e42 (diff)
downloadFreeBSD-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')
-rw-r--r--sys/scsi/scsi_ioctl.c4
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;
OpenPOWER on IntegriCloud