kernel - Improve kern_dup() performance
commit886546ecb02e3979d903a92d90031f3cc0c7b247
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 23 Apr 2018 02:25:23 +0000 (22 19:25 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 23 Apr 2018 02:31:28 +0000 (22 19:31 -0700)
tree372f049bd514fbc0bb90d2c03a84ba777ab37254
parent0f22bffdb9e9ed584b904d1a380ddf93b698e64e
kernel - Improve kern_dup() performance

* Run the operation with a single exclusive spinlock instead of
  acquiring and releasing it twice.  Improves thread-concurent
  dup() performance.
sys/kern/kern_descrip.c