kernel - Make certain sysctl's unlocked
commit618537cfaa49437046c077c8f6699125520cbf5b
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 19 Oct 2017 03:04:43 +0000 (18 20:04 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 19 Oct 2017 03:51:50 +0000 (18 20:51 -0700)
tree2c9ab8ef5b7c75647b954e24a7c49a74b5a23573
parente8e93b5f635438c7c3d3acff28563c51512686db
kernel - Make certain sysctl's unlocked

* Automatically flag all SYSCTL_[U]INT, [U]LONG, and [U]QUAD
  definitions CTLFLAG_NOLOCK.  These do not have to be locked.
  Will improve program startup performance a tad.

* Flag a ton of other sysctls used in program startup and
  also 'ps' CTLFLAG_NOLOCK.

* For kern.hostname, interlock changes using XLOCK and allow
  the sysctl to run NOLOCK, avoiding unnecessary cache line
  bouncing.
sys/kern/kern_mib.c
sys/kern/kern_nrandom.c
sys/kern/kern_proc.c
sys/kern/kern_sysctl.c
sys/sys/sysctl.h
sys/vfs/devfs/devfs_core.c
sys/vm/vm_meter.c