cvs commit: src/sys/fs/tmpfs tmpfs.h tmpfs_subr.c

Xin LI delphij at
Thu Aug 2 23:24:31 PDT 2007

delphij     2007-08-03 06:24:31 UTC

  FreeBSD src repository

  Modified files:
    sys/fs/tmpfs         tmpfs.h tmpfs_subr.c 
  MFp4 - Refine locking to eliminate some potential race/panics:
   - Copy before testing a pointer.  This closes a race window.
   - Use msleep with the node interlock instead of tsleep.
   - Do proper locking around access to tn_vpstate.
   - Assert vnode VOP lock for dir_{atta,de}tach to capture
     inconsistent locking.
  Suggested by:   kib
  Submitted by:   delphij
  Reviewed by:    Howard Su
  Approved by:    re (tmpfs blanket)
  Revision  Changes    Path
  1.9       +1 -0      src/sys/fs/tmpfs/tmpfs.h
  1.10      +21 -21    src/sys/fs/tmpfs/tmpfs_subr.c

More information about the cvs-src mailing list