]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC 212293:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 20 Sep 2010 19:58:50 +0000 (19:58 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 20 Sep 2010 19:58:50 +0000 (19:58 +0000)
commitdee73edb89cfd08644e90eb5deb9714fd8a259c6
tree7c69f5584b2f84f475328986e50b48cad0f4ab59
parent298ec269b13a82ff9f68bc25d4c3d06499327e58
MFC 212293:
Store the full timestamp when caching timestamps of files and
directories for purposes of validating name cache entries.  This
closes races where two updates to a file or directory within the same
second could result in stale entries in the name cache.

To preserve the ABI of 'struct nfsnode', the existing timestamp fields
are left with 'n_unusedX' placeholders along with the unused 'n_expiry'
field.  The larger n_ctime and n_dmtime fields are added to the end of
the structure.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212929 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/fs/nfsclient/nfs_clrpcops.c
sys/fs/nfsclient/nfs_clvnops.c
sys/fs/nfsclient/nfsnode.h
sys/nfsclient/nfs_vnops.c
sys/nfsclient/nfsnode.h