DragonFly-2.3.1.892.g899eb master sys/vfs/hammer hammer.h hammer_inode.c hammer_subs.c hammer_vnops.c

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Jul 14 00:20:29 PDT 2009


commit 899eb297501681913674633aa0823adb6809437c
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Jul 14 00:14:12 2009 -0700

    HAMMER - new hammer_lock code, fix mplock bug in last commit, mpsafe getattr.
    
    * Fix a mplock bug in the last commit that can cause a panic in hammer_read.
      The mplock check code wasn't setting up the hammer transaction properly.
    
    * VMP_GETATTR is now set on all HAMMER vnodes.  If sysctl vfs.getattr_mpsafe=1
      all fstat() operations will run without the MP lock.
    
    * Rewrite HAMMER's lock code, making it MPSAFE.  The new lock code uses
      atomic_cmpset_int().

Summary of changes:
 sys/vfs/hammer/hammer.h       |   23 +++-
 sys/vfs/hammer/hammer_inode.c |    3 +-
 sys/vfs/hammer/hammer_subs.c  |  284 +++++++++++++++++++++++++++--------------
 sys/vfs/hammer/hammer_vnops.c |   16 ++-
 4 files changed, 222 insertions(+), 104 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/899eb297501681913674633aa0823adb6809437c


-- 
DragonFly BSD source repository





More information about the Commits mailing list