summaryrefslogtreecommitdiff
path: root/sys/arch/vax/mscp/mscp_disk.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-06-08 08:50:27 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-06-08 08:50:27 +0000
commit94d1681e1d4c04e4f4384d9e36f0ae6e74560409 (patch)
tree89608c8f0edccd88b05e452116284dc24c6d64d4 /sys/arch/vax/mscp/mscp_disk.c
parent84eb493436172260ba7e053ca26252e495c4aa42 (diff)
protect biodone with splbio
Diffstat (limited to 'sys/arch/vax/mscp/mscp_disk.c')
-rw-r--r--sys/arch/vax/mscp/mscp_disk.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/arch/vax/mscp/mscp_disk.c b/sys/arch/vax/mscp/mscp_disk.c
index a4fdc8649f4..c2da8381392 100644
--- a/sys/arch/vax/mscp/mscp_disk.c
+++ b/sys/arch/vax/mscp/mscp_disk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mscp_disk.c,v 1.10 2002/03/14 01:26:48 millert Exp $ */
+/* $OpenBSD: mscp_disk.c,v 1.11 2002/06/08 08:50:26 art Exp $ */
/* $NetBSD: mscp_disk.c,v 1.30 2001/11/13 07:38:28 lukem Exp $ */
/*
* Copyright (c) 1996 Ludd, University of Lule}, Sweden.
@@ -292,6 +292,8 @@ rastrategy(bp)
{
int unit;
struct ra_softc *ra;
+ int s;
+
/*
* Make sure this is a reasonable drive to use.
*/
@@ -332,7 +334,9 @@ rastrategy(bp)
return;
done:
+ s = splbio();
biodone(bp);
+ splx(s);
}
int
@@ -699,6 +703,7 @@ rxstrategy(bp)
{
int unit;
struct rx_softc *rx;
+ int s;
/*
* Make sure this is a reasonable drive to use.
@@ -734,7 +739,9 @@ rxstrategy(bp)
return;
done:
+ s = splbio();
biodone(bp);
+ splx(s);
}
int
@@ -869,8 +876,11 @@ rriodone(usc, bp)
struct device *usc;
struct buf *bp;
{
+ int s;
+ s = splbio();
biodone(bp);
+ splx(s);
}
/*