DragonFly commits List (threaded) for 2009-07
DragonFly BSD
DragonFly commits List (threaded) for 2009-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 14 Jul 2009 00:17:56 -0700 (PDT)

commit 899eb297501681913674633aa0823adb6809437c
Author: Matthew Dillon <dillon@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]