git: kernel - Attempt to make procfs MPSAFE
Matthew Dillon
dillon at crater.dragonflybsd.org
Tue Nov 15 19:30:36 PST 2011
commit f44c73be8d3378d2d5c5444bbffa0fc63fff944d
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Tue Nov 15 19:28:24 2011 -0800
kernel - Attempt to make procfs MPSAFE
* pfs_pfind() now acquires the p->p_token in addition to its PHOLD().
* Replace PRELE()'s with pfs_pdone() which releases the token along
with PRELE()
* Double-check the validity of nch's passed to cache_fullpath(). This
probably still needs work.
Reported-by: swildner
Summary of changes:
sys/vfs/procfs/procfs.h | 1 +
sys/vfs/procfs/procfs_ctl.c | 2 +-
sys/vfs/procfs/procfs_subr.c | 19 ++++++++----
sys/vfs/procfs/procfs_vnops.c | 67 +++++++++++++++++++++++++----------------
4 files changed, 56 insertions(+), 33 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f44c73be8d3378d2d5c5444bbffa0fc63fff944d
--
DragonFly BSD source repository
More information about the Commits
mailing list