cvs commit: src/sys/ufs/ufs ufs_extattr.c

Robert Watson rwatson at FreeBSD.org
Thu May 15 14:07:36 PDT 2003


rwatson     2003/05/15 14:07:33 PDT

  FreeBSD src repository

  Modified files:
    sys/ufs/ufs          ufs_extattr.c 
  Log:
  Jeff added locking assertions that the VV_ flags on vnodes were modified
  only while holding appropriate vnode locks.  This patch slides the lock
  release for ufs_extattr_enable() to continue to hold the active vnode lock
  on a backing file until after the flag change; it also acquires a vnode
  lock when disabling an attribute and hence clearing a flag on the backing
  vnode.  This permits VFS_DEBUG_LOCKS to run UFS1 extended attributes
  without panicking, as well as preventing a potential race and vnode flag
  problem.
  
  Approved by:    re (jhb)
  Pointed out by: DEBUG_VFS_LOCKS
  
  Revision  Changes    Path
  1.63      +11 -5     src/sys/ufs/ufs/ufs_extattr.c


More information about the cvs-all mailing list