kernel - Attempt to make procfs MPSAFE
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 16 Nov 2011 03:28:24 +0000 (19:28 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 16 Nov 2011 03:28:24 +0000 (19:28 -0800)
commitf44c73be8d3378d2d5c5444bbffa0fc63fff944d
treea27dd7ed4dafc731aa2d9d97fb5ed08294bd097c
parent15d2bc79d633c676c76b686e21fa33036b5ebe69
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
sys/vfs/procfs/procfs.h
sys/vfs/procfs/procfs_ctl.c
sys/vfs/procfs/procfs_subr.c
sys/vfs/procfs/procfs_vnops.c