kernel - Fix unnecessary ucred duplication
commit7adf09fa6578cf272287f7aa5ee8f3dec69027d2
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 27 Sep 2017 04:28:12 +0000 (26 21:28 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 27 Sep 2017 04:34:52 +0000 (26 21:34 -0700)
tree0a69779dec5ed59c4f7b79e108466d9fb6fda2f7
parent8def3b58c71a8b3527e2cc9aed97c1467dc0a74c
kernel - Fix unnecessary ucred duplication

* Fix unnecessary ucred replication.  This is not a memory leak, but it
  is annoying.

* Replicated ucreds can build-up in the system (up to maxvnodes) due to
  to unlinked files.

* Fix by flagging unlinked files in np->n_flag and immediately recycling
  the related vnode in the inactive code if it has been flagged for
  removal.
sys/vfs/nfs/nfs_node.c
sys/vfs/nfs/nfs_vnops.c
sys/vfs/nfs/nfsnode.h