cvs commit: src/sys/nfsclient nfs_bio.c nfs_vnops.c

Robert Watson rwatson at FreeBSD.org
Thu May 15 14:12:09 PDT 2003


rwatson     2003/05/15 14:12:08 PDT

  FreeBSD src repository

  Modified files:
    sys/nfsclient        nfs_bio.c nfs_vnops.c 
  Log:
  This change grabs the vnode lock for NFS client vnodes when calling
  VOP_SETATTR() or VOP_GETATTR(); without these locks (a) VFS_DEBUG_LOCKS
  will panic, and (b) it may be possible to corrupt entries in the cached
  vnode attributes in the nfsnode, since nfsnode attribute cache data is
  also protected by the vnode lock.
  
  Approved by:    re (jhb)
  Pointed out by: VFS_DEBUG_LOCKS
  
  Revision  Changes    Path
  1.118     +3 -1      src/sys/nfsclient/nfs_bio.c
  1.205     +4 -0      src/sys/nfsclient/nfs_vnops.c


More information about the cvs-src mailing list