Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jul 2010 18:54:56 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/nfsclient nfs_vnops.c
Message-ID:  <201007261855.o6QItEZC093549@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2010-07-26 18:54:56 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_8)
    sys/nfsclient        nfs_vnops.c 
  Log:
  SVN rev 210512 on 2010-07-26 18:54:56Z by jhb
  
  MFC 209948:
  A previous change moved the GETATTR RPC for open() calls that hit in the
  name cache up into nfs_lookup() instead of nfs_open().  Continue this
  trend by flushing the attribute cache for leaf nodes in nfs_lookup() during
  an open() if we do a LOOKUP RPC.  For NFSv3 this should generally be a NOP
  as the attributes are flushed before fetching the post-op attributes from
  the LOOKUP RPC which most (all?) NFSv3 servers provide, so the post-op
  attributes should populate the cache.
  
  Now all NFS open() calls will always clear the cached attributes during the
  nfs_lookup() prior to nfs_open() in the !NMODIFIED case to provide CTOC.
  As a result, we can remove the conditional flushing of the attribute
  cache from nfs_open().
  
  Revision    Changes    Path
  1.318.2.12  +14 -9     src/sys/nfsclient/nfs_vnops.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007261855.o6QItEZC093549>