summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2004-09-20 10:56:52 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2004-09-20 10:56:52 +0000
commit94f473ff210c7abb14929b9a98768130b4428096 (patch)
tree61e048c6c43d9a1e5e827a15900853e86ee643d9 /sys
parentc1df064517891e624710653be0c0b62b72d59697 (diff)
spl dance to protect buffer flags in a sensitive context
ok millert@ tedu@
Diffstat (limited to 'sys')
-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 aaa6a9a10c0..f7b9192569a 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_bio.c,v 1.69 2004/06/24 19:35:24 tholo Exp $ */
+/* $OpenBSD: vfs_bio.c,v 1.70 2004/09/20 10:56:51 pedro Exp $ */
/* $NetBSD: vfs_bio.c,v 1.44 1996/06/11 11:15:36 pk Exp $ */
/*-
@@ -572,13 +572,13 @@ brelse(struct buf *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);
wakeup(bp);
}
+
+ splx(s);
}
/*