summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-10-22 09:37:45 +0000
committerdg <dg@FreeBSD.org>1995-10-22 09:37:45 +0000
commitdb7c5a06eaf8a1b22a7681660d844c2977be0f68 (patch)
treec4c424116edb59b3fc93c7f8fef5dcb1dacfdefb
parentb5341559e2be008ac6cd1e40a68bdd77a3ec8b63 (diff)
downloadFreeBSD-src-db7c5a06eaf8a1b22a7681660d844c2977be0f68.zip
FreeBSD-src-db7c5a06eaf8a1b22a7681660d844c2977be0f68.tar.gz
Fix order problem: unbusy pages before releasing the buffer.
Submitted by: John Dyson <dyson>
-rw-r--r--sys/nfs/nfs_vnops.c4
-rw-r--r--sys/nfsclient/nfs_vnops.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c
index 41f27fb..db6bbde 100644
--- a/sys/nfs/nfs_vnops.c
+++ b/sys/nfs/nfs_vnops.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_vnops.c 8.5 (Berkeley) 2/13/94
- * $Id: nfs_vnops.c,v 1.24 1995/09/04 00:20:50 dyson Exp $
+ * $Id: nfs_vnops.c,v 1.25 1995/10/22 09:32:42 davidg Exp $
*/
/*
@@ -2832,8 +2832,8 @@ again:
bp = bvec[i];
bp->b_flags &= ~(B_NEEDCOMMIT | B_WRITEINPROG);
if (retv) {
- brelse(bp);
vfs_unbusy_pages(bp);
+ brelse(bp);
} else {
vp->v_numoutput++;
bp->b_flags |= B_ASYNC;
diff --git a/sys/nfsclient/nfs_vnops.c b/sys/nfsclient/nfs_vnops.c
index 41f27fb..db6bbde 100644
--- a/sys/nfsclient/nfs_vnops.c
+++ b/sys/nfsclient/nfs_vnops.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_vnops.c 8.5 (Berkeley) 2/13/94
- * $Id: nfs_vnops.c,v 1.24 1995/09/04 00:20:50 dyson Exp $
+ * $Id: nfs_vnops.c,v 1.25 1995/10/22 09:32:42 davidg Exp $
*/
/*
@@ -2832,8 +2832,8 @@ again:
bp = bvec[i];
bp->b_flags &= ~(B_NEEDCOMMIT | B_WRITEINPROG);
if (retv) {
- brelse(bp);
vfs_unbusy_pages(bp);
+ brelse(bp);
} else {
vp->v_numoutput++;
bp->b_flags |= B_ASYNC;
OpenPOWER on IntegriCloud