cvs commit: src/sys/nfsclient nfs_vnops.c

Alfred Perlstein alfred at FreeBSD.org
Mon Nov 10 16:32:47 PST 2003


alfred      2003/11/10 16:32:46 PST

  FreeBSD src repository

  Modified files:
    sys/nfsclient        nfs_vnops.c 
  Log:
  Stop using shared locks for nfs vop locks.
  
  The reason this was done was to avoid a race to the root when an
  NFS server went down.  However a semi-recent change to the way that
  the kernel's lookup() routine traverses mount points prevents this.
  
  Rev 1.39 of vfs_lookup.c changed the ordering of locks such that we
  aquire a shared lock on the mount point being accessed and then drop
  the directory vnode lock before requesting the target lock.
  
  With that in place we no longer need shared locks for NFS to prevent
  race to the root lockups.
  
  Revision  Changes    Path
  1.214     +0 -3      src/sys/nfsclient/nfs_vnops.c


More information about the cvs-src mailing list