kernel - MPSAFE work - fix bugs in recent MPSAFE work.
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 13 Jun 2010 16:31:25 +0000 (09:31 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 13 Jun 2010 16:31:25 +0000 (09:31 -0700)
commit6f9db61576fd340f7ae1d1431fb6ad845bd73aa2
tree5bf3e70dd596f0d960ca499a4428d4aa1db05279
parent46270ec662f96487806e6b37f7403538568019f3
kernel - MPSAFE work - fix bugs in recent MPSAFE work.

* Adjust comment for zpfind(), it does not PHOLD() the returned process,
  in order to match pfind().

* Adjust two use-cases for zpfind() to hold proc_token across the call,
  and to PHOLD/PRELE(p) if necessary, so (p) remains stable.

Reported-by: Venkatesh Srinivas <vsrinivas@crater.dragonflybsd.org>
sys/emulation/linux/linux_signal.c
sys/kern/kern_event.c
sys/kern/kern_proc.c