kernel - Avoid p->p_token when sending a signal to a particular lwp
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 1 Feb 2017 02:33:33 +0000 (18:33 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 1 Feb 2017 02:33:33 +0000 (18:33 -0800)
commit22f4a817164aa428518102732730fadabc37b8eb
tree4cb85f1a72e6446b3cb7f4142051da79b5f53b5f
parentb443039b5d8fa7246ce7be3e04756121508c48eb
kernel - Avoid p->p_token when sending a signal to a particular lwp

* Avoid holding the per-process token excluysively when sending a signal
  to a particular lwp.  Hold it shared to locate the lwp, but otherwise do
  all signal processing with the target lwp's token.

* Significantly improves vkernel timer operation.  Timer distribution to
  multiple cpus no longer trip over themselves.
sys/kern/kern_sig.c