From: Derrick Brashear Date: Tue, 4 Dec 2007 20:40:53 +0000 (+0000) Subject: DEVEL15-linux-nfs-translator-dont-lose-nfs-pag-on-write-20071204 X-Git-Tag: openafs-devel-1_5_28~14 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=227fae158b129bdd8364d4858eba3f033afd5696;p=packages%2Fo%2Fopenafs.git DEVEL15-linux-nfs-translator-dont-lose-nfs-pag-on-write-20071204 LICENSE IPL10 avoid issue where nfs writes through the translator could become unpag'd because a background daemon came into play (cherry picked from commit ebbd12f3ab83eafa0d8cd6978a45a4cc0b248334) --- diff --git a/src/afs/VNOPS/afs_vnop_write.c b/src/afs/VNOPS/afs_vnop_write.c index e40e41ab9..5971871ca 100644 --- a/src/afs/VNOPS/afs_vnop_write.c +++ b/src/afs/VNOPS/afs_vnop_write.c @@ -905,7 +905,7 @@ afs_close(OSI_VC_ARG(avc), aflags, acred) } #endif /* AFS_SGI_ENV */ if (aflags & (FWRITE | FTRUNC)) { - if (afs_BBusy()) { + if (afs_BBusy() || (AFS_NFSXLATORREQ(acred))) { /* do it yourself if daemons are all busy */ ObtainWriteLock(&avc->lock, 124); code = afs_StoreOnLastReference(avc, &treq);