diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-05-22 00:22:07 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-05-22 00:22:07 +0000 |
commit | df02dd6dcf97bc81e928bca4ce3cf6131cbc5136 (patch) | |
tree | 5a2bcf0aa8dada34c2092b6c93ffcc5efb305006 /sys/kern | |
parent | 560d05a8ef19bb32db9c3b24766f9f7a86794951 (diff) |
some b_iodone handlers and vwakeup require splbio.
Mark biodone with splassert(IPL_BIO).
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_bio.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 09eb2fba844..147b36239c5 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_bio.c,v 1.60 2002/05/16 00:03:05 art Exp $ */ +/* $OpenBSD: vfs_bio.c,v 1.61 2002/05/22 00:22:06 art Exp $ */ /* $NetBSD: vfs_bio.c,v 1.44 1996/06/11 11:15:36 pk Exp $ */ /*- @@ -1014,6 +1014,8 @@ void biodone(bp) struct buf *bp; { + splassert(IPL_BIO); + if (ISSET(bp->b_flags, B_DONE)) panic("biodone already"); SET(bp->b_flags, B_DONE); /* note that it's done */ |