tmpfs - Fix lost vnode reference due to race
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 11 Jun 2021 03:16:15 +0000 (20:16 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 11 Jun 2021 03:16:15 +0000 (20:16 -0700)
commit79721fbfeb6bdfbe11b325bd5c215751bac54a60
treee8cde69b60b7095300fba03d44c8bf65cfc79e78
parentb386b64cf5dd1afe4f581521b51abb10a4ca0737
tmpfs - Fix lost vnode reference due to race

* Under certain race conditions when a vget() fails and must
  retry, the vnode is not completely unwound and an extra ref
  is left on it.

* Can cause files in tmpfs to build-up and eat space even if deleted.

* Relatively rare.
sys/vfs/tmpfs/tmpfs_subr.c