git: kernel - Refactor vfs_cache ncp->nc_refs

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Mar 2 17:29:11 PST 2020


commit bc6d15e22d3b37df55df53412d6493ca8fa9b066
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Feb 27 10:41:08 2020 -0800

    kernel - Refactor vfs_cache ncp->nc_refs
    
    * Refactor namecache->nc_refs to use atomic_fetchadd_int() instead
      of atomic_fcmp_set(), which really helps in heavily contended
      situations.
    
      This is accomplished by having a ref for every possible access point,
      so that the 1->0 transition can lead directly to termination without
      requiring further surgery.

Summary of changes:
 sys/kern/vfs_cache.c | 417 ++++++++++++++++++++++++++++-----------------------
 1 file changed, 233 insertions(+), 184 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bc6d15e22d3b37df55df53412d6493ca8fa9b066


-- 
DragonFly BSD source repository



More information about the Commits mailing list