Fix order problem: unbusy pages before releasing the buffer.

Submitted by:	John Dyson <dyson>
This commit is contained in:
David Greenman 1995-10-22 09:37:45 +00:00
parent d68a41903e
commit 5344cc61f5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11645
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;