git: DragonFly_RELEASE_5_4 hammer2 - stabilization

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Dec 17 13:55:55 PST 2018


commit 462a4ba98b21a5e17d8aac4c7e6779e0f9fba0fb
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Dec 5 22:42:31 2018 -0800

    hammer2 - stabilization
    
    * Adjust the chain lock a bit to bump lockcnt prior to acquiring
      a non-blocking shared lock, instead of afterwords, which cleans
      up a live-loop case in the chain unlock code.
    
    * Cleanup misc debugging.  Add some inode debugging code (default
      disabled).
    
    * Add some crash-dump (or live) debug utilities for tracking down
      chains, dio's, and inodes.  kgdb's macros are too slow for iterating
      a million chains.

Summary of changes:
 sys/vfs/hammer2/hammer2.h              |  1 +
 sys/vfs/hammer2/hammer2_chain.c        | 33 ++++++++------
 sys/vfs/hammer2/hammer2_flush.c        |  2 -
 sys/vfs/hammer2/hammer2_io.c           |  5 ++-
 sys/vfs/hammer2/hammer2_vfsops.c       |  3 ++
 sys/vfs/hammer2/hammer2_vnops.c        | 19 ++++++++
 test/debug/h2chains.c                  | 11 +++--
 test/debug/{ksyscalls.c => h2dio.c}    | 82 +++++++++++++++++++++-------------
 test/debug/{ksyscalls.c => h2inodes.c} | 82 +++++++++++++++++++++-------------
 9 files changed, 153 insertions(+), 85 deletions(-)
 copy test/debug/{ksyscalls.c => h2dio.c} (67%)
 copy test/debug/{ksyscalls.c => h2inodes.c} (67%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/462a4ba98b21a5e17d8aac4c7e6779e0f9fba0fb


-- 
DragonFly BSD source repository


More information about the Commits mailing list