Subject: CVS commit: syssrc/sys/nfs
To: None <source-changes@netbsd.org>
From: Chuck Silvers <chs@netbsd.org>
List: source-changes
Date: 03/17/2002 01:05:25
Module Name: syssrc
Committed By: chs
Date: Sat Mar 16 23:05:25 UTC 2002
Modified Files:
syssrc/sys/nfs: nfs_bio.c nfs_node.c
Log Message:
make sure that if NMODIFIED is clear, all pages attached to the vnode are
clean and without writable mappings. if we try to flush dirty pages past
EOF to the server when NMODIFIED is clear, we'll update the attrcache before
doing the write, which will try to free the pages past EOF and deadlock.
to deal with this, we write-protect pages before we send them to the server,
and restrict ourselves to creating read-only mappings if NMODIFIED isn't set.
score another one for enami.
To generate a diff of this commit:
cvs rdiff -r1.75 -r1.76 syssrc/sys/nfs/nfs_bio.c
cvs rdiff -r1.52 -r1.53 syssrc/sys/nfs/nfs_node.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.