git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
a342c53
)
linux-nfs-translator-dont-lose-nfs-pag-on-write-20071204
author
Derrick Brashear
<shadow@dementia.org>
Tue, 4 Dec 2007 20:39:18 +0000 (20:39 +0000)
committer
Derrick Brashear
<shadow@dementia.org>
Tue, 4 Dec 2007 20:39:18 +0000 (20:39 +0000)
LICENSE IPL10
avoid issue where nfs writes through the translator could become unpag'd because a background daemon came into play
src/afs/VNOPS/afs_vnop_write.c
patch
|
blob
|
history
diff --git
a/src/afs/VNOPS/afs_vnop_write.c
b/src/afs/VNOPS/afs_vnop_write.c
index
e40e41a
..
5971871
100644
(file)
--- 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);