summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_bio.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-05-16 00:03:06 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-05-16 00:03:06 +0000
commit2bd48043d848f337cd8dd19270a3fd343f361ac4 (patch)
treea548c893d2297a58590616a697f350722fc60ec4 /sys/kern/vfs_bio.c
parentc28d2fabbfffe9cef91590bb8b01e561f7e25a0f (diff)
sprinkle some splassert(IPL_BIO) in some functions that are commented as "should be called at splbio()"
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r--sys/kern/vfs_bio.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 8496a477f8b..09eb2fba844 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_bio.c,v 1.59 2002/04/27 15:29:30 art Exp $ */
+/* $OpenBSD: vfs_bio.c,v 1.60 2002/05/16 00:03:05 art Exp $ */
/* $NetBSD: vfs_bio.c,v 1.44 1996/06/11 11:15:36 pk Exp $ */
/*-
@@ -484,6 +484,8 @@ void
buf_dirty(bp)
struct buf *bp;
{
+ splassert(IPL_BIO);
+
if (ISSET(bp->b_flags, B_DELWRI) == 0) {
SET(bp->b_flags, B_DELWRI);
reassignbuf(bp);
@@ -497,6 +499,8 @@ void
buf_undirty(bp)
struct buf *bp;
{
+ splassert(IPL_BIO);
+
if (ISSET(bp->b_flags, B_DELWRI)) {
CLR(bp->b_flags, B_DELWRI);
reassignbuf(bp);