cvs commit: src/sys/nfsclient nfs_bio.c nfs_node.c nfs_vnops.c nfsnode.h

Paul Saab ps at FreeBSD.org
Mon Dec 6 10:52:29 PST 2004


ps          2004-12-06 18:52:28 UTC

  FreeBSD src repository

  Modified files:
    sys/nfsclient        nfs_bio.c nfs_node.c nfs_vnops.c 
                         nfsnode.h 
  Log:
  Serialize NFS vinvalbuf operations by acquiring/upgrading to the
  vnode EXCLUSIVE lock. This prevents threads from adding pages to
  the vnode while an invalidation is in progress, closing potential
  races. In the bioread() path, callers acquire the SHARED vnode lock
  - so while an invalidate was in progress, it was possible to fault
  in new pages onto the vnode causing the invalidation to take a while
  or fail. We saw these races at Yahoo! with very large files+heavy
  concurrent access. Forcing an upgrade to EXCLUSIVE lock before doing
  the invalidation closes all these races.
  
  Submitted by:   Mohan Srinivasan mohans at yahoo-inc dot com
  
  Revision  Changes    Path
  1.141     +23 -26    src/sys/nfsclient/nfs_bio.c
  1.70      +1 -1      src/sys/nfsclient/nfs_node.c
  1.235     +0 -2      src/sys/nfsclient/nfs_vnops.c
  1.49      +0 -2      src/sys/nfsclient/nfsnode.h


More information about the cvs-src mailing list