1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-22 11:17:19 +00:00
freebsd/sys/nfsclient
Rick Macklem 7af1242a34 PR# 165923 reported intermittent write failures for dirty
memory mapped pages being written back on an NFS mount.
Since any thread can call VOP_PUTPAGES() to write back a
dirty page, the credentials of that thread may not have
write access to the file on an NFS server. (Often the uid
is 0, which may be mapped to "nobody" in the NFS server.)
Although there is no completely correct fix for this
(NFS servers check access on every write RPC instead of at
open/mmap time), this patch avoids the common cases by
holding onto a credential that recently opened the file
for writing and uses that credential for the write RPCs
being done by VOP_PUTPAGES() for both NFS clients.

Tested by:	Joel Ray Holveck (joelh at juniper.net)
PR:		kern/165923
Reviewed by:	kib
MFC after:	2 weeks
2012-05-12 12:02:51 +00:00
..
nfs_bio.c PR# 165923 reported intermittent write failures for dirty 2012-05-12 12:02:51 +00:00
nfs_kdtrace.c
nfs_krpc.c Adjust the nfs_skip_wcc_data_onerr setting so that it does not block 2012-02-24 17:26:06 +00:00
nfs_nfsiod.c
nfs_node.c PR# 165923 reported intermittent write failures for dirty 2012-05-12 12:02:51 +00:00
nfs_subs.c Fix mount mutex handling missed in r234386. 2012-05-10 21:38:48 +00:00
nfs_vfsops.c Fix mount mutex handling missed in r234386. 2012-05-05 09:34:35 +00:00
nfs_vnops.c PR# 165923 reported intermittent write failures for dirty 2012-05-12 12:02:51 +00:00
nfs.h
nfsargs.h
nfsm_subs.h Close a race in NFS lookup processing that could result in stale name cache 2012-01-20 20:02:01 +00:00
nfsmount.h Add a timeout on positive name cache entries in the NFS client. That is, 2012-01-25 20:05:58 +00:00
nfsnode.h PR# 165923 reported intermittent write failures for dirty 2012-05-12 12:02:51 +00:00
nfsstats.h
nlminfo.h