Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Nov 2008 19:04:01 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/dev/hwpmc hwpmc_mod.c src/sys/fs/procfs procfs.c procfs_map.c src/sys/kern kern_descrip.c kern_proc.c
Message-ID:  <200811041904.mA4J4e29043088@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2008-11-04 19:04:01 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/hwpmc        hwpmc_mod.c 
    sys/fs/procfs        procfs.c procfs_map.c 
    sys/kern             kern_descrip.c kern_proc.c 
  Log:
  SVN rev 184652 on 2008-11-04 19:04:01Z by jhb
  
  Remove unnecessary locking around vn_fullpath().  The vnode lock for the
  vnode in question does not need to be held.  All the data structures used
  during the name lookup are protected by the global name cache lock.
  Instead, the caller merely needs to ensure a reference is held on the
  vnode (such as vhold()) to keep it from being freed.
  
  In the case of procfs' <pid>/file entry, grab the process lock while we
  gain a new reference (via vhold()) on p_textvp to fully close races with
  execve(2).
  
  For the kern.proc.vmmap sysctl handler, use a shared vnode lock around
  the call to VOP_GETATTR() rather than an exclusive lock.
  
  MFC after:      1 month
  
  Revision  Changes    Path
  1.37      +0 -2      src/sys/dev/hwpmc/hwpmc_mod.c
  1.19      +4 -8      src/sys/fs/procfs/procfs.c
  1.43      +2 -3      src/sys/fs/procfs/procfs_map.c
  1.342     +4 -6      src/sys/kern/kern_descrip.c
  1.271     +2 -2      src/sys/kern/kern_proc.c



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