summaryrefslogtreecommitdiffstats
path: root/sys/nfs
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1998-08-13 08:09:08 +0000
committerdfr <dfr@FreeBSD.org>1998-08-13 08:09:08 +0000
commitcb85cf3e66942eabeff656173ac75b9275fa61fe (patch)
tree0f2c440ae29cf3c8695d77275be9d3ffe4f4a18a /sys/nfs
parenta1b2079000fa319fd6e9ee79ceb8d15d4bbd55d5 (diff)
downloadFreeBSD-src-cb85cf3e66942eabeff656173ac75b9275fa61fe.zip
FreeBSD-src-cb85cf3e66942eabeff656173ac75b9275fa61fe.tar.gz
Protect all modifications to v_numoutput with splbio().
Diffstat (limited to 'sys/nfs')
-rw-r--r--sys/nfs/nfs_vnops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c
index 965d85e..385f6f6 100644
--- a/sys/nfs/nfs_vnops.c
+++ b/sys/nfs/nfs_vnops.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_vnops.c 8.16 (Berkeley) 5/27/95
- * $Id: nfs_vnops.c,v 1.104 1998/06/01 10:59:23 peter Exp $
+ * $Id: nfs_vnops.c,v 1.105 1998/07/04 20:45:37 julian Exp $
*/
@@ -2853,6 +2853,7 @@ again:
vfs_unbusy_pages(bp);
brelse(bp);
} else {
+ s = splbio(); /* XXX check this positionning */
vp->v_numoutput++;
bp->b_flags |= B_ASYNC;
if (bp->b_flags & B_DELWRI) {
@@ -2861,7 +2862,6 @@ again:
vfs_bio_need_satisfy();
}
}
- s = splbio(); /* XXX check this positionning */
bp->b_flags &= ~(B_READ|B_DONE|B_ERROR|B_DELWRI);
bp->b_dirtyoff = bp->b_dirtyend = 0;
reassignbuf(bp, vp);
OpenPOWER on IntegriCloud