git: kernel - Fix unnecessary ucred duplication

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Sep 26 21:34:55 PDT 2017


commit 7adf09fa6578cf272287f7aa5ee8f3dec69027d2
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Sep 26 21:28:12 2017 -0700

    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.

Summary of changes:
 sys/vfs/nfs/nfs_node.c  |  2 ++
 sys/vfs/nfs/nfs_vnops.c | 50 ++++++++++++++++++++++++++++++++++++++++++-------
 sys/vfs/nfs/nfsnode.h   |  2 +-
 3 files changed, 46 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7adf09fa6578cf272287f7aa5ee8f3dec69027d2


-- 
DragonFly BSD source repository



More information about the Commits mailing list