kernel - Throw a global lock around udev dictionary ops
commit108c361c483b6fb4bd179b04f6a7173de7125d3d
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 27 Dec 2018 03:33:23 +0000 (26 19:33 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 27 Dec 2018 03:33:23 +0000 (26 19:33 -0800)
tree5a9617aa7172395a1fd3edb0a94ded9194a4049c
parenta0fed86142b3163a25e72eca99dd978a0fd91ed7
kernel - Throw a global lock around udev dictionary ops

* Throw a global lockmgr lock around accesses and adjustments to
  dev->si_dict.

* Refactor functions that used to access dev->si_dict directly by
  adding two helper functions, udev_get_dict() and udev_put_dict().

* Should fix occassional vn-related panics.
sys/kern/kern_udev.c