diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-11-29 12:24:29 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-11-29 12:24:29 +0000 |
commit | 9d5da6418650e17828f1bf71bbefaab5cb264bf1 (patch) | |
tree | 22ef59d1f75c3fef77aed5c9f459f1dfd0a9c60c | |
parent | 09c3b8a3bcab0f7df146ad79489fbf146a506c9b (diff) |
Make sure the nfs vnodes are on the syncer worklist.
-rw-r--r-- | sys/nfs/nfs_bio.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/nfs/nfs_bio.c b/sys/nfs/nfs_bio.c index 70b682b548b..d7ad1956b09 100644 --- a/sys/nfs/nfs_bio.c +++ b/sys/nfs/nfs_bio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_bio.c,v 1.27 2001/11/29 02:08:22 art Exp $ */ +/* $OpenBSD: nfs_bio.c,v 1.28 2001/11/29 12:24:28 art Exp $ */ /* $NetBSD: nfs_bio.c,v 1.25.4.2 1996/07/08 20:47:04 jtc Exp $ */ /* @@ -630,7 +630,9 @@ nfs_getpages(v) } /* vnode is VOP_LOCKed, uobj is locked */ - + if (write && (vp->v_bioflag & VBIOONSYNCLIST) == 0) { + vn_syncer_add_to_worklist(vp, syncdelay); + } bsize = nmp->nm_rsize; orignpages = MIN(*ap->a_count, round_page(eof - origoffset) >> PAGE_SHIFT); |