mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 04:13:39 +00:00
Fix order problem: unbusy pages before releasing the buffer.
Submitted by: John Dyson <dyson>
This commit is contained in:
parent
d68a41903e
commit
5344cc61f5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11645
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user