cvs commit: src/sys/kern vfs_subr.c

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Jul 10 09:30:09 PDT 2004


dillon      2004/07/10 09:29:45 PDT

DragonFly src repository

  Modified files:
    sys/kern             vfs_subr.c 
  Log:
  There was a mountlist race in getnewvnode() whereby the system could block
  obtaining the mountlist token while adding a vnode to the mountlist prior
  to initializing the vnode's v_usecount and v_data fields.  This bug is
  possibly responsible for or related to occassional reports of duplicate
  inodes in the system.
  
  Fix the potential problem by more completely initializing the vnode prior
  to adding it to the mountlist.  Note that FreeBSD-5 also rearranged thei
  r code along the same lines (though this change is independant of their
  work).
  
  Revision  Changes    Path
  1.35      +8 -3      src/sys/kern/vfs_subr.c


http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_subr.c.diff?r1=1.34&r2=1.35&f=u





More information about the Commits mailing list