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

git: kernel - Attempt to make procfs MPSAFE


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 15 Nov 2011 19:30:01 -0800 (PST)

commit f44c73be8d3378d2d5c5444bbffa0fc63fff944d
Author: Matthew Dillon <dillon@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



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