procfs - Fix blocked lock condition
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 5 Aug 2017 04:47:23 +0000 (21:47 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 5 Aug 2017 04:47:23 +0000 (21:47 -0700)
commitdd8b310b76c571c1e437910b480a6efb98250758
tree1934160cc1fe1c00a07ced45b390895b7f5f88c2
parent4477e30ad9b9b43af1dacde9353043461e7cbf0d
procfs - Fix blocked lock condition

* Two procfs races can result in a lock being blocked forever.  Rip out
  the old single-variable global procfs lock and per-node lock and replace
  with a normal lockmgr lock.

* The original lock existed from a time when all of procfs was wrapped with
  a global lock.  This is no longer the case.
sys/vfs/procfs/procfs.h
sys/vfs/procfs/procfs_subr.c