kernel - Fix lost lock in devfs
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 1 Dec 2011 23:22:44 +0000 (15:22 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 1 Dec 2011 23:22:44 +0000 (15:22 -0800)
commit495d3a1efd4f8832641e3489717539bbe8d72ebe
tree9dd22c6c3c6d0222322e06903ff89ba424d52ec6
parente0e309580f5eade6ef7635e7a33ef9f779bbce47
kernel - Fix lost lock in devfs

* vn_lock() will always fail if a vnode is undergoing reclamation, do
  not try to unlock/relock in the spec_close code in that case.

* Refactor the error test in devfs_allocv() in case vget() returns
  an error other than ENOENT in the future.
sys/vfs/devfs/devfs_core.c
sys/vfs/devfs/devfs_vnops.c