cvs commit: src/sys/kern kern_fork.c

Peter Wemm peter at FreeBSD.org
Sun Mar 7 16:32:35 PST 2004


peter       2004/03/07 16:32:34 PST

  FreeBSD src repository

  Modified files:
    sys/kern             kern_fork.c 
  Log:
  Move a vref call outside of proc locks and Giant.  By virtue of the fact
  that we (p1) are currently running, we hold a reference on p_textvp which
  means the vnode cannot go away.  p2 cannot run yet (and hence cannot exit)
  so this should be safe to do at this point.  As a bonus, it removes a
  block of under-Giant code that was there to support the vref.
  
  Revision  Changes    Path
  1.220     +4 -5      src/sys/kern/kern_fork.c


More information about the cvs-all mailing list