From 74cf5cde2c09beda8441d23574f322be4fdcd5f3 Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Fri, 24 May 2002 08:54:25 +0000 Subject: protect biodone with splbio --- sys/msdosfs/msdosfs_vnops.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/msdosfs/msdosfs_vnops.c b/sys/msdosfs/msdosfs_vnops.c index 649d68f3f43..6058f707133 100644 --- a/sys/msdosfs/msdosfs_vnops.c +++ b/sys/msdosfs/msdosfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: msdosfs_vnops.c,v 1.36 2002/03/14 01:27:09 millert Exp $ */ +/* $OpenBSD: msdosfs_vnops.c,v 1.37 2002/05/24 08:54:24 art Exp $ */ /* $NetBSD: msdosfs_vnops.c,v 1.63 1997/10/17 11:24:19 ws Exp $ */ /*- @@ -1758,6 +1758,7 @@ msdosfs_strategy(v) struct denode *dep = VTODE(bp->b_vp); struct vnode *vp; int error = 0; + int s; if (bp->b_vp->v_type == VBLK || bp->b_vp->v_type == VCHR) panic("msdosfs_strategy: spec"); @@ -1776,7 +1777,9 @@ msdosfs_strategy(v) clrbuf(bp); } if (bp->b_blkno == -1) { + s = splbio(); biodone(bp); + splx(s); return (error); } -- cgit v1.2.3