diff options
author | Pedro Martelletto <pedro@cvs.openbsd.org> | 2007-06-09 08:21:35 +0000 |
---|---|---|
committer | Pedro Martelletto <pedro@cvs.openbsd.org> | 2007-06-09 08:21:35 +0000 |
commit | fd73cc64f5beb752c3b97d35a4ca731d351dde40 (patch) | |
tree | e4e76f33f5a141a88cc3ca3f2f2e100a7ccc584b | |
parent | bc00e9af4d2970ddea42b9b64777fed386690920 (diff) |
Protect access to 'bufhead' with splbio(), okay art@ millert@ marco@
-rw-r--r-- | sys/kern/vfs_bio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index f36436c7d5d..f90698bdae0 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_bio.c,v 1.95 2007/06/03 20:25:12 otto Exp $ */ +/* $OpenBSD: vfs_bio.c,v 1.96 2007/06/09 08:21:34 pedro Exp $ */ /* $NetBSD: vfs_bio.c,v 1.44 1996/06/11 11:15:36 pk Exp $ */ /*- @@ -241,9 +241,9 @@ buf_stub(struct vnode *vp, daddr64_t lblkno) bp->b_validoff = bp->b_validend = 0; LIST_INIT(&bp->b_dep); - LIST_INSERT_HEAD(&bufhead, bp, b_list); s = splbio(); + LIST_INSERT_HEAD(&bufhead, bp, b_list); bgetvp(vp, bp); splx(s); |