summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-05-24 14:06:35 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-05-24 14:06:35 +0000
commit82901bffaf0b0e093e8ad08939556bc20de0d384 (patch)
treedac627a7bcdbb24e4361fa9f5ba2d80044e250a9
parent19d78010138f2899116182defcdd53a972a09a93 (diff)
protect more of the bookkeeping variables with splbio.
-rw-r--r--sys/kern/vfs_bio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 8b50a05a823..86684cee38d 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_bio.c,v 1.62 2002/05/24 13:59:33 art Exp $ */
+/* $OpenBSD: vfs_bio.c,v 1.63 2002/05/24 14:06:34 art Exp $ */
/* $NetBSD: vfs_bio.c,v 1.44 1996/06/11 11:15:36 pk Exp $ */
/*-
@@ -587,8 +587,6 @@ brelse(bp)
/* Unlock the buffer. */
CLR(bp->b_flags, (B_AGE | B_ASYNC | B_BUSY | B_NOCACHE | B_DEFERRED));
- /* Allow disk interrupts. */
- splx(s);
/* Wake up syncer and cleaner processes waiting for buffers */
if (nobuffers) {
@@ -602,6 +600,8 @@ brelse(bp)
wakeup_one(&needbuffer);
}
+ splx(s);
+
/* Wake up any processes waiting for _this_ buffer to become free. */
if (ISSET(bp->b_flags, B_WANTED)) {
CLR(bp->b_flags, B_WANTED);