DragonFly BSD
DragonFly commits List (threaded) for 2004-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sys/kern vfs_subr.c


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 10 Jul 2004 09:29:45 -0700 (PDT)

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]