kernel - Optimize shared -> excl spinlock contention
commit1b8fb8d2a5ce36dee333be7a40858036d134ec57
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 5 Oct 2017 05:04:13 +0000 (4 22:04 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 16 Oct 2017 18:30:22 +0000 (16 11:30 -0700)
treed5fcb904781e7e090a543f30a10fc26522f99878
parent5b49787bf81ce6370fea5dfb5cde2d0dddc5c13b
kernel - Optimize shared -> excl spinlock contention

* When exclusive request is spinning waiting for shared holders to
  release, throw in addition cpu_pause()'s based on the number of
  shared holders.

Suggested-by: mjg_
sys/kern/kern_spinlock.c