git: hammer2 - Refactor LRU chain recycling

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Mar 17 01:31:38 PDT 2018


commit f94a23f56fd5f24ff4fc3d894e8f9921fe5daf76
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Mar 14 16:37:29 2018 -0700

    hammer2 - Refactor LRU chain recycling
    
    * Refactor LRU chain recycling by allowing a chain to remain on the
      LRU even if it gets referenced again.  This will be detected and
      handled properly if the LRU tries to recycle the chain.
    
    * Improved LRU performance by avoiding unnecessary global-ish spinlocks.
    
    * Also fixes a rare flagging/list race.

Summary of changes:
 sys/vfs/hammer2/hammer2.h        |  10 ++-
 sys/vfs/hammer2/hammer2_chain.c  | 161 ++++++++++++++++++++++++++++++++-------
 sys/vfs/hammer2/hammer2_vfsops.c |  41 +++++-----
 3 files changed, 166 insertions(+), 46 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list