Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Mar 2004 16:32:34 -0800 (PST)
From:      Peter Wemm <peter@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_fork.c
Message-ID:  <200403080032.i280WYUL043485@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403080032.i280WYUL043485>