Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jul 2010 14:27:49 +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:  <201007121428.o6CES2me048259@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2010-07-12 14:27:49 UTC

  FreeBSD src repository

  Modified files:
    sys/nfsclient        nfs_vnops.c 
  Log:
  SVN rev 209948 on 2010-07-12 14:27:49Z by jhb
  
  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().
  
  Reviewed by:    rmacklem, bde
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.330     +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?201007121428.o6CES2me048259>