git: hammer2 - stabilization

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Dec 7 21:31:00 PST 2018


commit 5071e67073f4a8fd6ef3165ca4e417d13a6d1e3e
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/5071e67073f4a8fd6ef3165ca4e417d13a6d1e3e


-- 
DragonFly BSD source repository



More information about the Commits mailing list